fix(filter): relation check
This commit is contained in:
parent
ba95b99abc
commit
92f7f90a5c
2 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue