mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 21:45:45 +01:00
421f8d49e5
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. |
||
---|---|---|
.. | ||
@types | ||
boot | ||
core | ||
daemons | ||
misc | ||
models | ||
queue | ||
server | ||
config.ts | ||
const.ts | ||
decorators.ts | ||
di-symbols.ts | ||
env.ts | ||
global.d.ts | ||
GlobalModule.ts | ||
logger.ts | ||
MainModule.ts | ||
NestLogger.ts | ||
postgres.ts | ||
types.ts |