don't trend notes from non-explorable or non-trendable users

This commit is contained in:
Hazelnoot 2025-05-11 05:46:40 -04:00
parent 0b8c101d71
commit dee2e19b63
3 changed files with 33 additions and 21 deletions

View file

@ -117,7 +117,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
.leftJoinAndSelect('note.renote', 'renote')
.leftJoinAndSelect('reply.user', 'replyUser')
.leftJoinAndSelect('renote.user', 'renoteUser')
.leftJoinAndSelect('note.channel', 'channel');
.leftJoinAndSelect('note.channel', 'channel')
.andWhere('user.isExplorable = TRUE');
this.queryService.generateBlockedHostQueryForNote(query);