mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-21 04:35:09 +01:00
5f43c2faa2
* 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) * Update Changelog * Update CHANGELOG.md * enhance: 通知がミュートを考慮するようにする * enhance: 通知が凍結も考慮するようにする * fix: notifierIdがない通知が消えてしまう問題 * Add tests (通知がミュートを考慮しているかどうか) * fix: notifierIdがない通知が消えてしまう問題 (grouped) * Remove unused import * Fix: typo * Revert "enhance: 通知が凍結も考慮するようにする" This reverts commit |
||
---|---|---|
.. | ||
AbuseUserReportEntityService.ts | ||
AntennaEntityService.ts | ||
AppEntityService.ts | ||
AuthSessionEntityService.ts | ||
BlockingEntityService.ts | ||
ChannelEntityService.ts | ||
ClipEntityService.ts | ||
DriveFileEntityService.ts | ||
DriveFolderEntityService.ts | ||
EmojiEntityService.ts | ||
FlashEntityService.ts | ||
FlashLikeEntityService.ts | ||
FollowingEntityService.ts | ||
FollowRequestEntityService.ts | ||
GalleryLikeEntityService.ts | ||
GalleryPostEntityService.ts | ||
HashtagEntityService.ts | ||
InstanceEntityService.ts | ||
InviteCodeEntityService.ts | ||
MetaEntityService.ts | ||
ModerationLogEntityService.ts | ||
MutingEntityService.ts | ||
NoteEntityService.ts | ||
NoteFavoriteEntityService.ts | ||
NoteReactionEntityService.ts | ||
NotificationEntityService.ts | ||
PageEntityService.ts | ||
PageLikeEntityService.ts | ||
RenoteMutingEntityService.ts | ||
ReversiGameEntityService.ts | ||
RoleEntityService.ts | ||
SigninEntityService.ts | ||
UserEntityService.ts | ||
UserListEntityService.ts |