mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-26 03:20:54 +09:00
tagging.defaultTagがundefinedのケース
This commit is contained in:
parent
167f90f0b9
commit
5d853f0e01
@ -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.tagging?.defaultTag;
|
||||
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.tagging?.defaultTag;
|
||||
const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'),
|
||||
ps.sinceId, ps.untilId)
|
||||
.andWhere(new Brackets(qb => {
|
||||
|
@ -47,7 +47,7 @@ class HybridTimelineChannel extends Channel {
|
||||
this.withReplies = params.withReplies ?? false;
|
||||
this.withFiles = params.withFiles ?? false;
|
||||
const config = loadConfig();
|
||||
this.defaultTag = config.tagging.defaultTag;
|
||||
this.defaultTag = config.tagging?.defaultTag;
|
||||
|
||||
// Subscribe events
|
||||
this.subscriber.on('notesStream', this.onNote);
|
||||
|
Loading…
Reference in New Issue
Block a user