monkeeShark/packages/backend
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
..
.vscode Update settings.json 2022-04-15 21:33:00 +09:00
assets feat: use instance icon for splash screen 2022-03-09 23:00:28 +09:00
migration hotfix: uniform color migration fix 2022-05-19 15:42:55 +02:00
src fix: correctly render empty note text (#8746) 2022-06-03 23:18:44 +09:00
test refactor: use === 2022-05-25 23:19:39 +09:00
.eslintignore use eslint 2021-11-12 10:35:41 +09:00
.eslintrc.cjs test: __dirnameはESModuleでは使えないので置き換えた (#8626) 2022-05-14 16:09:47 +09:00
.mocharc.json Update .mocharc.json 2022-05-21 22:24:57 +09:00
.npmrc refactoring 2021-11-12 02:02:25 +09:00
.yarnrc use eslint 2021-11-12 10:35:41 +09:00
jsconfig.json use eslint 2021-11-12 10:35:41 +09:00
ormconfig.js refactor: migrate to typeorm 3.0 (#8443) 2022-03-26 15:34:00 +09:00
package.json use http-signature module that supports hs2019 (#8635) 2022-05-26 09:12:17 +09:00
tsconfig.json update node to 18 2022-04-23 12:37:44 +09:00
watch.mjs implement dev command 2021-11-19 14:48:59 +09:00
yarn.lock use http-signature module that supports hs2019 (#8635) 2022-05-26 09:12:17 +09:00