fix(filter): relation check

This commit is contained in:
무라쿠모 2024-09-06 17:58:02 +09:00
parent ba95b99abc
commit 92f7f90a5c
No known key found for this signature in database
GPG key ID: 139D6573F92DA9F7
2 changed files with 8 additions and 3 deletions

View file

@ -280,6 +280,7 @@ export class SearchService {
if (me && isUserRelated(note, userIdsWhoMeMuting)) return false;
if (['followers', 'specified'].includes(note.visibility)) {
if (me == null) return false;
if (me.id === note.userId) return true;
if (note.visibility === 'followers') {
const relationship = await this.userEntityService.getRelation(me.id, note.userId);
if (relationship.isFollowing) return true;