diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-22 09:14:50 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-22 09:14:50 +0100 |
commit | 6d8524702874120a4667269a81a61e3c7c5e300d (patch) | |
tree | a462d95c56b558a4cfc42db08ec1cb66b1f99680 /server/initializers | |
parent | fb4fd623d5e5adcfdc9ecf3dffef702b3786f486 (diff) | |
download | PeerTube-6d8524702874120a4667269a81a61e3c7c5e300d.tar.gz PeerTube-6d8524702874120a4667269a81a61e3c7c5e300d.tar.zst PeerTube-6d8524702874120a4667269a81a61e3c7c5e300d.zip |
Create comment on replied mastodon statutes
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 3 | ||||
-rw-r--r-- | server/initializers/database.ts | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 100a77622..c8b21d10d 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -175,6 +175,9 @@ const CONSTRAINTS_FIELDS = { | |||
175 | }, | 175 | }, |
176 | VIDEO_EVENTS: { | 176 | VIDEO_EVENTS: { |
177 | COUNT: { min: 0 } | 177 | COUNT: { min: 0 } |
178 | }, | ||
179 | COMMENT: { | ||
180 | URL: { min: 3, max: 2000 } // Length | ||
178 | } | 181 | } |
179 | } | 182 | } |
180 | 183 | ||
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 0b3f695f7..852db68a0 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -18,6 +18,7 @@ import { VideoModel } from '../models/video/video' | |||
18 | import { VideoAbuseModel } from '../models/video/video-abuse' | 18 | import { VideoAbuseModel } from '../models/video/video-abuse' |
19 | import { VideoBlacklistModel } from '../models/video/video-blacklist' | 19 | import { VideoBlacklistModel } from '../models/video/video-blacklist' |
20 | import { VideoChannelModel } from '../models/video/video-channel' | 20 | import { VideoChannelModel } from '../models/video/video-channel' |
21 | import { VideoCommentModel } from '../models/video/video-comment' | ||
21 | import { VideoFileModel } from '../models/video/video-file' | 22 | import { VideoFileModel } from '../models/video/video-file' |
22 | import { VideoShareModel } from '../models/video/video-share' | 23 | import { VideoShareModel } from '../models/video/video-share' |
23 | import { VideoTagModel } from '../models/video/video-tag' | 24 | import { VideoTagModel } from '../models/video/video-tag' |
@@ -73,7 +74,8 @@ async function initDatabaseModels (silent: boolean) { | |||
73 | VideoFileModel, | 74 | VideoFileModel, |
74 | VideoBlacklistModel, | 75 | VideoBlacklistModel, |
75 | VideoTagModel, | 76 | VideoTagModel, |
76 | VideoModel | 77 | VideoModel, |
78 | VideoCommentModel | ||
77 | ]) | 79 | ]) |
78 | 80 | ||
79 | if (!silent) logger.info('Database %s is ready.', dbname) | 81 | if (!silent) logger.info('Database %s is ready.', dbname) |