Skip to content

Commit

Permalink
Update search-by-tag.ts
Browse files Browse the repository at this point in the history
Add missing instance variable.
  • Loading branch information
moyitpro authored Dec 8, 2023
1 parent 8cb011e commit a428df7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
private metaService: MetaService,
) {
super(meta, paramDef, async (ps, me) => {
const instance = await this.metaService.fetch();
const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'), ps.sinceId, ps.untilId)
.andWhere('note.visibility = \'public\'')
.andWhere('note.userHost NOT IN (:...blockedhosts)', { blockedhosts: instance.blockedHosts })
Expand Down

0 comments on commit a428df7

Please sign in to comment.