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
..
2022-05-24 10:12:42 +02:00
2022-05-28 21:17:23 +02:00
2022-04-03 15:33:22 +09:00
2022-04-03 16:40:47 +09:00
2022-02-27 11:07:39 +09:00
2022-02-27 11:07:39 +09:00
2022-04-17 13:26:31 +09:00
2022-04-17 13:26:31 +09:00