Skip to content

Commit

Permalink
変えた
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net committed Nov 4, 2024
1 parent f1c594a commit 0b98a1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/core/AdvancedSearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1077,9 +1077,9 @@ export class AdvancedSearchService {
if (me) this.queryService.generateMutedUserQuery(query, me);
if (me) this.queryService.generateBlockedUserQuery(query, me);
if (opts.followingFilter) {
this.queryService.generateVisibilityQuery(query, me, true, opts.followingFilter);
this.queryService.generateVisibilityQuery(query, me, { search: true, followingFilter: opts.followingFilter });
} else {
this.queryService.generateVisibilityQuery(query, me, true);
this.queryService.generateVisibilityQuery(query, me, { search: true });
}
return await query.limit(pagination.limit).getMany();
}
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/core/SearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class SearchService {
}
}

this.queryService.generateVisibilityQuery(query, me, true);
this.queryService.generateVisibilityQuery(query, me, { search: true });
if (me) this.queryService.generateMutedUserQuery(query, me);
if (me) this.queryService.generateBlockedUserQuery(query, me);

Expand Down

0 comments on commit 0b98a1d

Please sign in to comment.