From 50d6de9c286abcb34ff4234d56d9cbb803db7665 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Dec 2017 17:38:41 +0100 Subject: Begin moving video channel to actor --- server/initializers/constants.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'server/initializers/constants.ts') 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 @@ import * as config from 'config' import { join } from 'path' import { JobCategory, JobState, VideoRateType } from '../../shared/models' -import { FollowState } from '../../shared/models/accounts' +import { FollowState } from '../../shared/models/actors' +import { ActivityPubActorType } from '../../shared/models/activitypub' import { VideoPrivacy } from '../../shared/models/videos' // Do not use barrels, remain constants as independent as possible import { isTestInstance, root } from '../helpers/core-utils' @@ -210,7 +211,7 @@ const VIDEO_MIMETYPE_EXT = { // --------------------------------------------------------------------------- -const SERVER_ACCOUNT_NAME = 'peertube' +const SERVER_ACTOR_NAME = 'peertube' const ACTIVITY_PUB = { POTENTIAL_ACCEPT_HEADERS: [ @@ -229,6 +230,12 @@ const ACTIVITY_PUB = { } } +const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = { + GROUP: 'Group', + PERSON: 'Person', + APPLICATION: 'Application' +} + // --------------------------------------------------------------------------- // Number of points we add/remove from a friend after a successful/bad request @@ -350,12 +357,13 @@ export { REMOTE_SCHEME, FOLLOW_STATES, AVATARS_DIR, - SERVER_ACCOUNT_NAME, + SERVER_ACTOR_NAME, PRIVATE_RSA_KEY_SIZE, SORTABLE_COLUMNS, STATIC_MAX_AGE, STATIC_PATHS, ACTIVITY_PUB, + ACTIVITY_PUB_ACTOR_TYPES, THUMBNAILS_SIZE, VIDEO_CATEGORIES, VIDEO_LANGUAGES, -- cgit v1.2.3