diff options
| author | Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com> | 2024-07-14 20:24:29 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-14 20:24:29 +0900 |
| commit | 4b9c60ad21704e7e75df830205cec2db7afc2baa (patch) | |
| tree | fe76b30cf730a851b10118038903858ddb915349 /packages/backend/src/misc | |
| parent | enhance(backend): configにsignToActivityPubGetの指定が無い場合true... (diff) | |
| download | sharkey-4b9c60ad21704e7e75df830205cec2db7afc2baa.tar.gz sharkey-4b9c60ad21704e7e75df830205cec2db7afc2baa.tar.bz2 sharkey-4b9c60ad21704e7e75df830205cec2db7afc2baa.zip | |
fix(backend): ユーザーのリアクション一覧でミュート/ブロックが機能していなかった問題を修正 (#14100)
* fix: mute/block was not considered on users/reactions
* docs(changelog): update changelog
* chore: Apply suggestion from code review
Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com>
---------
Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com>
Diffstat (limited to 'packages/backend/src/misc')
| -rw-r--r-- | packages/backend/src/misc/is-user-related.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/backend/src/misc/is-user-related.ts b/packages/backend/src/misc/is-user-related.ts index 93c9b2b814..862d6e6a38 100644 --- a/packages/backend/src/misc/is-user-related.ts +++ b/packages/backend/src/misc/is-user-related.ts @@ -4,6 +4,10 @@ */ export function isUserRelated(note: any, userIds: Set<string>, ignoreAuthor = false): boolean { + if (!note) { + return false; + } + if (userIds.has(note.userId) && !ignoreAuthor) { return true; } |