misskey/packages/backend/src
Johann150 81109b14b5
fix: correctly render empty note text (#8746)
Ensure that the _misskey_content attribute will always exist. Because
the API endpoint does not require the existence of the `text` field,
that field may be `undefined`. By using `?? null` it can be ensured
that the value is at least `null`.

Furthermore, the rendered HTML of a note with empty text will also be
the empty string. From git blame it seems that this behaviour was added
because of a Mastodon bug that might have previously existed. Hoever,
this seems to be no longer the case as I can find mastodon posts that
have empty content.

The code could be made a bit more succinct by using the null coercion
operator.
2022-06-03 23:18:44 +09:00
..
@types use http-signature module that supports hs2019 (#8635) 2022-05-26 09:12:17 +09:00
boot enhance: Perform port diagnosis at startup only when Listen fails (#8698) 2022-05-19 11:49:07 +09:00
config preload app css (#8752) 2022-05-29 10:57:06 +09:00
daemons refactor: fix type 2022-04-17 14:42:13 +09:00
db fix(test): reset redis in e2e test 2022-06-03 23:08:15 +09:00
mfm fix(mfm): remove duplicate br tag/newline (#8616) 2022-05-31 18:57:55 +09:00
misc Fix IP address rate limit (#8758) 2022-05-31 17:44:22 +09:00
models refactor: improve code quality (#8751) 2022-05-29 15:15:52 +09:00
prelude refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
queue fix: always remove completed tasks (#8771) 2022-05-31 17:54:02 +09:00
remote fix: correctly render empty note text (#8746) 2022-06-03 23:18:44 +09:00
server User moderation details (#8762) 2022-06-03 23:14:50 +09:00
services fix: always remove completed tasks (#8771) 2022-05-31 17:54:02 +09:00
const.ts remove max note text length setting 2022-02-20 16:07:43 +09:00
env.ts refactoring 2021-11-12 02:02:25 +09:00
global.d.ts refactoring 2021-11-12 02:02:25 +09:00
index.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
types.ts feat: アンケート終了通知 2022-03-06 16:06:27 +09:00