モロヘイヤ使用の場合等、タグの追記はオフにできるように。
This commit is contained in:
parent
36cfe398d2
commit
f216585421
8 changed files with 24 additions and 20 deletions
|
|
@ -201,7 +201,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
}
|
||||
|
||||
const config = loadConfig();
|
||||
const defaultTag: string | null = config.tagging?.defaultTag;
|
||||
const defaultTag: string | null = config.defaultTag?.tag;
|
||||
if (defaultTag == null) {
|
||||
qb.orWhere('(note.visibility = \'public\') AND (note.userHost IS NULL)');
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
withReplies: boolean,
|
||||
}, me: MiLocalUser | null) {
|
||||
const config = loadConfig();
|
||||
const defaultTag: string | null = config.tagging?.defaultTag;
|
||||
const defaultTag: string | null = config.defaultTag?.tag;
|
||||
const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'),
|
||||
ps.sinceId, ps.untilId)
|
||||
.andWhere(new Brackets(qb => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue