diff options
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 14 |
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 @@ | |||
1 | import * as config from 'config' | 1 | import * as config from 'config' |
2 | import { join } from 'path' | 2 | import { join } from 'path' |
3 | import { JobCategory, JobState, VideoRateType } from '../../shared/models' | 3 | import { JobCategory, JobState, VideoRateType } from '../../shared/models' |
4 | import { FollowState } from '../../shared/models/accounts' | 4 | import { FollowState } from '../../shared/models/actors' |
5 | import { ActivityPubActorType } from '../../shared/models/activitypub' | ||
5 | import { VideoPrivacy } from '../../shared/models/videos' | 6 | import { 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 |
7 | import { isTestInstance, root } from '../helpers/core-utils' | 8 | import { isTestInstance, root } from '../helpers/core-utils' |
@@ -210,7 +211,7 @@ const VIDEO_MIMETYPE_EXT = { | |||
210 | 211 | ||
211 | // --------------------------------------------------------------------------- | 212 | // --------------------------------------------------------------------------- |
212 | 213 | ||
213 | const SERVER_ACCOUNT_NAME = 'peertube' | 214 | const SERVER_ACTOR_NAME = 'peertube' |
214 | 215 | ||
215 | const ACTIVITY_PUB = { | 216 | const ACTIVITY_PUB = { |
216 | POTENTIAL_ACCEPT_HEADERS: [ | 217 | POTENTIAL_ACCEPT_HEADERS: [ |
@@ -229,6 +230,12 @@ const ACTIVITY_PUB = { | |||
229 | } | 230 | } |
230 | } | 231 | } |
231 | 232 | ||
233 | const 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, |