misskey/packages
dakkar 417bb2d31e Never return broken notifications #409
Since notifications are stored in Redis, we can't expect relational
integrity: deleting a user will *not* delete notifications that
mention it.

But if we return notifications with missing bits (a `follow` without a
`user`, for example), the frontend will get very confused and throw an
exception while trying to render them.

This change makes sure we never expose those broken notifications. For
uniformity, I've applied the same logic to notes and roles mentioned
in notifications, even if nobody reported breakage in those cases.

Tested by creating a few types of notifications with a `notifierId`,
then deleting their user.

(cherry picked from commit 421f8d49e5d7a8dc3a798cc54716c767df8be3cb)
2024-02-13 15:21:30 +09:00
..
backend Never return broken notifications #409 2024-02-13 15:21:30 +09:00
frontend fix: downgrade vue to 3.4.15 2024-02-12 19:16:44 +00:00
misskey-bubble-game update SPDX-FileCopyrightText 2024-02-12 11:37:45 +09:00
misskey-js refactor(msjs): avoid any (part 1) (#13247) 2024-02-12 11:38:16 +09:00
misskey-reversi update SPDX-FileCopyrightText 2024-02-12 11:37:45 +09:00
shared chore: use @misskey-dev/eslint-plugin (#12860) 2023-12-31 15:26:57 +09:00
sw update SPDX-FileCopyrightText 2024-02-12 11:37:45 +09:00
meta.json