From c1183207bb95ea18c6a4b72f06f1f9f0bd705813 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 11 Oct 2018 23:07:20 +0900 Subject: [PATCH] Fix --- src/server/api/stream/channel.ts | 2 +- src/server/api/stream/channels/drive.ts | 2 +- src/server/api/stream/channels/games/reversi-game.ts | 2 +- src/server/api/stream/channels/games/reversi.ts | 2 +- src/server/api/stream/channels/global-timeline.ts | 2 +- src/server/api/stream/channels/hashtag.ts | 2 +- src/server/api/stream/channels/home-timeline.ts | 2 +- src/server/api/stream/channels/hybrid-timeline.ts | 2 +- src/server/api/stream/channels/local-timeline.ts | 2 +- src/server/api/stream/channels/main.ts | 2 +- src/server/api/stream/channels/messaging-index.ts | 2 +- src/server/api/stream/channels/messaging.ts | 2 +- src/server/api/stream/channels/notes-stats.ts | 2 +- src/server/api/stream/channels/server-stats.ts | 2 +- src/server/api/stream/channels/user-list.ts | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/server/api/stream/channel.ts b/src/server/api/stream/channel.ts index 3548e4c37..75914964c 100644 --- a/src/server/api/stream/channel.ts +++ b/src/server/api/stream/channel.ts @@ -8,7 +8,7 @@ export default abstract class Channel { protected connection: Connection; public id: string; public abstract readonly chName: string; - public abstract readonly shouldShare: boolean; + public static readonly shouldShare: boolean; protected get user() { return this.connection.user; diff --git a/src/server/api/stream/channels/drive.ts b/src/server/api/stream/channels/drive.ts index 4b428a008..7425a620f 100644 --- a/src/server/api/stream/channels/drive.ts +++ b/src/server/api/stream/channels/drive.ts @@ -3,7 +3,7 @@ import Channel from '../channel'; export default class extends Channel { public readonly chName = 'drive'; - public readonly shouldShare = true; + public static shouldShare = true; @autobind public async init(params: any) { diff --git a/src/server/api/stream/channels/games/reversi-game.ts b/src/server/api/stream/channels/games/reversi-game.ts index 9004cdfc6..5dc9ca060 100644 --- a/src/server/api/stream/channels/games/reversi-game.ts +++ b/src/server/api/stream/channels/games/reversi-game.ts @@ -9,7 +9,7 @@ import Channel from '../../channel'; export default class extends Channel { public readonly chName = 'gamesReversiGame'; - public readonly shouldShare = false; + public static shouldShare = false; private gameId: mongo.ObjectID; diff --git a/src/server/api/stream/channels/games/reversi.ts b/src/server/api/stream/channels/games/reversi.ts index 0a7684703..51cb264d9 100644 --- a/src/server/api/stream/channels/games/reversi.ts +++ b/src/server/api/stream/channels/games/reversi.ts @@ -6,7 +6,7 @@ import Channel from '../../channel'; export default class extends Channel { public readonly chName = 'gamesReversi'; - public readonly shouldShare = true; + public static shouldShare = true; @autobind public async init(params: any) { diff --git a/src/server/api/stream/channels/global-timeline.ts b/src/server/api/stream/channels/global-timeline.ts index 00f9e01ba..e39ea269a 100644 --- a/src/server/api/stream/channels/global-timeline.ts +++ b/src/server/api/stream/channels/global-timeline.ts @@ -6,7 +6,7 @@ import Channel from '../channel'; export default class extends Channel { public readonly chName = 'globalTimeline'; - public readonly shouldShare = true; + public static shouldShare = true; private mutedUserIds: string[] = []; diff --git a/src/server/api/stream/channels/hashtag.ts b/src/server/api/stream/channels/hashtag.ts index 3f4f37ca5..cf652c166 100644 --- a/src/server/api/stream/channels/hashtag.ts +++ b/src/server/api/stream/channels/hashtag.ts @@ -6,7 +6,7 @@ import Channel from '../channel'; export default class extends Channel { public readonly chName = 'hashtag'; - public readonly shouldShare = false; + public static shouldShare = false; @autobind public async init(params: any) { diff --git a/src/server/api/stream/channels/home-timeline.ts b/src/server/api/stream/channels/home-timeline.ts index abdd35612..3fa887f1e 100644 --- a/src/server/api/stream/channels/home-timeline.ts +++ b/src/server/api/stream/channels/home-timeline.ts @@ -6,7 +6,7 @@ import Channel from '../channel'; export default class extends Channel { public readonly chName = 'homeTimeline'; - public readonly shouldShare = true; + public static shouldShare = true; private mutedUserIds: string[] = []; diff --git a/src/server/api/stream/channels/hybrid-timeline.ts b/src/server/api/stream/channels/hybrid-timeline.ts index f26668b49..d72545e4c 100644 --- a/src/server/api/stream/channels/hybrid-timeline.ts +++ b/src/server/api/stream/channels/hybrid-timeline.ts @@ -6,7 +6,7 @@ import Channel from '../channel'; export default class extends Channel { public readonly chName = 'hybridTimeline'; - public readonly shouldShare = true; + public static shouldShare = true; private mutedUserIds: string[] = []; diff --git a/src/server/api/stream/channels/local-timeline.ts b/src/server/api/stream/channels/local-timeline.ts index 13285604b..0ba0b1b19 100644 --- a/src/server/api/stream/channels/local-timeline.ts +++ b/src/server/api/stream/channels/local-timeline.ts @@ -6,7 +6,7 @@ import Channel from '../channel'; export default class extends Channel { public readonly chName = 'localTimeline'; - public readonly shouldShare = true; + public static shouldShare = true; private mutedUserIds: string[] = []; diff --git a/src/server/api/stream/channels/main.ts b/src/server/api/stream/channels/main.ts index f19f5d92a..7d5462c09 100644 --- a/src/server/api/stream/channels/main.ts +++ b/src/server/api/stream/channels/main.ts @@ -4,7 +4,7 @@ import Channel from '../channel'; export default class extends Channel { public readonly chName = 'main'; - public readonly shouldShare = true; + public static shouldShare = true; @autobind public async init(params: any) { diff --git a/src/server/api/stream/channels/messaging-index.ts b/src/server/api/stream/channels/messaging-index.ts index 43acaf9ab..0211d702c 100644 --- a/src/server/api/stream/channels/messaging-index.ts +++ b/src/server/api/stream/channels/messaging-index.ts @@ -3,7 +3,7 @@ import Channel from '../channel'; export default class extends Channel { public readonly chName = 'messagingIndex'; - public readonly shouldShare = true; + public static shouldShare = true; @autobind public async init(params: any) { diff --git a/src/server/api/stream/channels/messaging.ts b/src/server/api/stream/channels/messaging.ts index c862438b0..ab04a332c 100644 --- a/src/server/api/stream/channels/messaging.ts +++ b/src/server/api/stream/channels/messaging.ts @@ -4,7 +4,7 @@ import Channel from '../channel'; export default class extends Channel { public readonly chName = 'messaging'; - public readonly shouldShare = false; + public static shouldShare = false; private otherpartyId: string; diff --git a/src/server/api/stream/channels/notes-stats.ts b/src/server/api/stream/channels/notes-stats.ts index 3171ada78..2282f8bc7 100644 --- a/src/server/api/stream/channels/notes-stats.ts +++ b/src/server/api/stream/channels/notes-stats.ts @@ -6,7 +6,7 @@ const ev = new Xev(); export default class extends Channel { public readonly chName = 'notesStats'; - public readonly shouldShare = true; + public static shouldShare = true; @autobind public async init(params: any) { diff --git a/src/server/api/stream/channels/server-stats.ts b/src/server/api/stream/channels/server-stats.ts index 4d0176578..912dcf530 100644 --- a/src/server/api/stream/channels/server-stats.ts +++ b/src/server/api/stream/channels/server-stats.ts @@ -6,7 +6,7 @@ const ev = new Xev(); export default class extends Channel { public readonly chName = 'serverStats'; - public readonly shouldShare = true; + public static shouldShare = true; @autobind public async init(params: any) { diff --git a/src/server/api/stream/channels/user-list.ts b/src/server/api/stream/channels/user-list.ts index 85df4b4f1..b526a5f98 100644 --- a/src/server/api/stream/channels/user-list.ts +++ b/src/server/api/stream/channels/user-list.ts @@ -3,7 +3,7 @@ import Channel from '../channel'; export default class extends Channel { public readonly chName = 'userList'; - public readonly shouldShare = false; + public static shouldShare = false; @autobind public async init(params: any) {