Skip to content
Snippets Groups Projects
Commit 0fc36d11 authored by syuilo's avatar syuilo
Browse files

fix(backend): STLにGTLの投稿が混ざる問題を修正

Fix #12169
parent 7436e0da
No related branches found
No related tags found
No related merge requests found
......@@ -237,7 +237,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
if (followingChannels.length > 0) {
const followingChannelIds = followingChannels.map(x => x.followeeId);
query.andWhere('note.channelId IN (:...followingChannelIds) OR note.channelId IS NULL', { followingChannelIds });
query.andWhere(new Brackets(qb => {
qb.where('note.channelId IN (:...followingChannelIds)', { followingChannelIds });
qb.andWhere('note.channelId IS NULL');
}));
} else {
query.andWhere('note.channelId IS NULL');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment