Skip to content

Commit

Permalink
merge: prettier query for bubble timeline (misskey-dev#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marie authored Dec 4, 2023
2 parents d5b598d + 216d177 commit 0de8053
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate)
.andWhere('note.visibility = \'public\'')
.andWhere('note.channelId IS NULL')
.andWhere(
`(note.userHost = ANY ('{"${instance.bubbleInstances.join('","')}"}'))`,
)
.andWhere('note.userHost IN (:...hosts)', { hosts: instance.bubbleInstances })
.innerJoinAndSelect('note.user', 'user')
.leftJoinAndSelect('note.reply', 'reply')
.leftJoinAndSelect('note.renote', 'renote')
Expand Down

0 comments on commit 0de8053

Please sign in to comment.