[CORL-116] Configure sitewide commenting (#2193)

* feat: configure sitewide commenting

* fix: repaired snapshots

* fix: updated snapshots

* test: update snapshots
This commit is contained in:
Kiwi
2019-02-13 18:36:37 +01:00
committed by GitHub
parent 51880bcfc9
commit c91a0fafa5
14 changed files with 454 additions and 76 deletions
+2 -2
View File
@@ -2,6 +2,7 @@ import { Omit } from "talk-common/types";
import {
GQLAuthDisplayNameConfiguration,
GQLCharCount,
GQLDisableCommenting,
GQLEmail,
GQLExternalIntegrations,
GQLFacebookAuthIntegration,
@@ -34,8 +35,7 @@ export interface ModerationSettings {
*/
closedTimeout: number;
closedMessage?: string;
disableCommenting: boolean;
disableCommentingMessage?: string;
disableCommenting: GQLDisableCommenting;
charCount: GQLCharCount;
}
+3 -1
View File
@@ -92,7 +92,9 @@ export async function createTenant(mongo: Db, input: CreateTenantInput) {
questionBoxEnable: false,
premodLinksEnable: false,
autoCloseStream: false,
disableCommenting: false,
disableCommenting: {
enabled: false,
},
// 2 weeks timeout.
closedTimeout: 60 * 60 * 24 * 7 * 2,