Merge remote-tracking branch 'niri-la/develop' into notification-tl-limit
This commit is contained in:
commit
e463974ce7
|
@ -17,6 +17,7 @@
|
||||||
### General
|
### General
|
||||||
- ハイライトからのおはnoteの除外でCWを見忘れていたのを修正
|
- ハイライトからのおはnoteの除外でCWを見忘れていたのを修正
|
||||||
- チャンネルをセンシティブ指定できるようになりました
|
- チャンネルをセンシティブ指定できるようになりました
|
||||||
|
- ハイライトから除外するチャンネルをsensitiveチャンネルのみにしました
|
||||||
|
|
||||||
### Client
|
### Client
|
||||||
|
|
||||||
|
|
|
@ -63,16 +63,23 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||||
|
|
||||||
if (!ps.channelId) {
|
if (!ps.channelId) {
|
||||||
// featured for welcome page. filter some notes
|
// featured for welcome page. filter some notes
|
||||||
query.andWhere('note.channelId IS NULL', { channelId: ps.channelId });
|
|
||||||
query.andWhere(
|
query.andWhere(
|
||||||
new Brackets(qb => {
|
new Brackets(qb => {
|
||||||
qb.where('note.text NOT LIKE \'%おはよう%\'')
|
qb.where('note.text NOT LIKE \'%おはよう%\'')
|
||||||
.andWhere('note.text NOT LIKE \'%:ohayo_nirila_misskey:%\'')
|
.andWhere('note.text NOT LIKE \'%:ohayo_nirila_misskey:%\'')
|
||||||
.andWhere('note.cw NOT LIKE \'%おはよう%\'')
|
.andWhere(new Brackets(qb => {
|
||||||
.andWhere('note.cw NOT LIKE \'%:ohayo_nirila_misskey:%\'')
|
qb.where('note.cw NOT LIKE \'%おはよう%\'')
|
||||||
|
.andWhere('note.cw NOT LIKE \'%:ohayo_nirila_misskey:%\'')
|
||||||
|
.orWhere('note.cw IS NULL');
|
||||||
|
}))
|
||||||
.orWhere('note.fileIds != \'{}\'');
|
.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);
|
if (me) this.queryService.generateMutedUserQuery(query, me);
|
||||||
|
|
Loading…
Reference in New Issue