chore: do not exclude non sensitive channels in featured
This commit is contained in:
parent
9a688dde0a
commit
8a19c96f32
|
@ -17,6 +17,7 @@
|
|||
### General
|
||||
- ハイライトからのおはnoteの除外でCWを見忘れていたのを修正
|
||||
- チャンネルをセンシティブ指定できるようになりました
|
||||
- ハイライトから除外するチャンネルをsensitiveチャンネルのみにしました
|
||||
|
||||
### Client
|
||||
|
||||
|
|
|
@ -63,7 +63,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
|
||||
if (!ps.channelId) {
|
||||
// featured for welcome page. filter some notes
|
||||
query.andWhere('note.channelId IS NULL', { channelId: ps.channelId });
|
||||
query.andWhere(
|
||||
new Brackets(qb => {
|
||||
qb.where('note.text NOT LIKE \'%おはよう%\'')
|
||||
|
@ -73,6 +72,11 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
.orWhere('note.fileIds != \'{}\'');
|
||||
}),
|
||||
);
|
||||
query.leftJoinAndSelect('note.channel', 'channel')
|
||||
.andWhere(new Brackets(qb => {
|
||||
qb.where('channel.isSensitive IS NULL')
|
||||
.orWhere('channel.isSensitive = FALSE');
|
||||
}));
|
||||
}
|
||||
|
||||
if (me) this.queryService.generateMutedUserQuery(query, me);
|
||||
|
|
Loading…
Reference in New Issue