aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-14 17:38:41 +0100
committerChocobozzz <me@florianbigard.com>2017-12-19 10:53:16 +0100
commit50d6de9c286abcb34ff4234d56d9cbb803db7665 (patch)
treef1732b27edcd05c7877a8358b8312f1e38c287ed /server/initializers/constants.ts
parentfadf619ad61a016c1c7fc53de5a8f398a4f77519 (diff)
downloadPeerTube-50d6de9c286abcb34ff4234d56d9cbb803db7665.tar.gz
PeerTube-50d6de9c286abcb34ff4234d56d9cbb803db7665.tar.zst
PeerTube-50d6de9c286abcb34ff4234d56d9cbb803db7665.zip
Begin moving video channel to actor
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts14
1 files changed, 11 insertions, 3 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index f209bef90..04b610b7a 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -1,7 +1,8 @@
1import * as config from 'config' 1import * as config from 'config'
2import { join } from 'path' 2import { join } from 'path'
3import { JobCategory, JobState, VideoRateType } from '../../shared/models' 3import { JobCategory, JobState, VideoRateType } from '../../shared/models'
4import { FollowState } from '../../shared/models/accounts' 4import { FollowState } from '../../shared/models/actors'
5import { ActivityPubActorType } from '../../shared/models/activitypub'
5import { VideoPrivacy } from '../../shared/models/videos' 6import { VideoPrivacy } from '../../shared/models/videos'
6// Do not use barrels, remain constants as independent as possible 7// Do not use barrels, remain constants as independent as possible
7import { isTestInstance, root } from '../helpers/core-utils' 8import { isTestInstance, root } from '../helpers/core-utils'
@@ -210,7 +211,7 @@ const VIDEO_MIMETYPE_EXT = {
210 211
211// --------------------------------------------------------------------------- 212// ---------------------------------------------------------------------------
212 213
213const SERVER_ACCOUNT_NAME = 'peertube' 214const SERVER_ACTOR_NAME = 'peertube'
214 215
215const ACTIVITY_PUB = { 216const ACTIVITY_PUB = {
216 POTENTIAL_ACCEPT_HEADERS: [ 217 POTENTIAL_ACCEPT_HEADERS: [
@@ -229,6 +230,12 @@ const ACTIVITY_PUB = {
229 } 230 }
230} 231}
231 232
233const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = {
234 GROUP: 'Group',
235 PERSON: 'Person',
236 APPLICATION: 'Application'
237}
238
232// --------------------------------------------------------------------------- 239// ---------------------------------------------------------------------------
233 240
234// Number of points we add/remove from a friend after a successful/bad request 241// Number of points we add/remove from a friend after a successful/bad request
@@ -350,12 +357,13 @@ export {
350 REMOTE_SCHEME, 357 REMOTE_SCHEME,
351 FOLLOW_STATES, 358 FOLLOW_STATES,
352 AVATARS_DIR, 359 AVATARS_DIR,
353 SERVER_ACCOUNT_NAME, 360 SERVER_ACTOR_NAME,
354 PRIVATE_RSA_KEY_SIZE, 361 PRIVATE_RSA_KEY_SIZE,
355 SORTABLE_COLUMNS, 362 SORTABLE_COLUMNS,
356 STATIC_MAX_AGE, 363 STATIC_MAX_AGE,
357 STATIC_PATHS, 364 STATIC_PATHS,
358 ACTIVITY_PUB, 365 ACTIVITY_PUB,
366 ACTIVITY_PUB_ACTOR_TYPES,
359 THUMBNAILS_SIZE, 367 THUMBNAILS_SIZE,
360 VIDEO_CATEGORIES, 368 VIDEO_CATEGORIES,
361 VIDEO_LANGUAGES, 369 VIDEO_LANGUAGES,