aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-15 11:00:25 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:51 +0100
commit608624252466acf9f1d9ee1c1170bd4fe4d18d18 (patch)
tree47eab55bb5421b7fe88e0b2ac743a436fd9561cf /server/initializers
parent51548b31815c6f96f314ae96588a9adca150519d (diff)
downloadPeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.gz
PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.zst
PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.zip
Rename Pod -> Server
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts10
-rw-r--r--server/initializers/database.ts4
2 files changed, 5 insertions, 9 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 4a49c1ab3..99da95ab9 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -6,10 +6,6 @@ import { root, isTestInstance } from '../helpers/core-utils'
6 6
7import { 7import {
8 VideoRateType, 8 VideoRateType,
9 RequestEndpoint,
10 RequestVideoEventType,
11 RequestVideoQaduType,
12 RemoteVideoRequestType,
13 JobState, 9 JobState,
14 JobCategory 10 JobCategory
15} from '../../shared/models' 11} from '../../shared/models'
@@ -220,7 +216,7 @@ const VIDEO_MIMETYPE_EXT = {
220 216
221// --------------------------------------------------------------------------- 217// ---------------------------------------------------------------------------
222 218
223// Score a pod has when we create it as a friend 219// Score a server has when we create it as a friend
224const FRIEND_SCORE = { 220const FRIEND_SCORE = {
225 BASE: 100, 221 BASE: 100,
226 MAX: 1000 222 MAX: 1000
@@ -243,7 +239,7 @@ const ACTIVITY_PUB = {
243// --------------------------------------------------------------------------- 239// ---------------------------------------------------------------------------
244 240
245// 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
246const PODS_SCORE = { 242const SERVERS_SCORE = {
247 PENALTY: -10, 243 PENALTY: -10,
248 BONUS: 10 244 BONUS: 10
249} 245}
@@ -352,7 +348,7 @@ export {
352 OAUTH_LIFETIME, 348 OAUTH_LIFETIME,
353 OPENGRAPH_AND_OEMBED_COMMENT, 349 OPENGRAPH_AND_OEMBED_COMMENT,
354 PAGINATION_COUNT_DEFAULT, 350 PAGINATION_COUNT_DEFAULT,
355 PODS_SCORE, 351 SERVERS_SCORE,
356 PREVIEWS_SIZE, 352 PREVIEWS_SIZE,
357 REMOTE_SCHEME, 353 REMOTE_SCHEME,
358 ACTIVITY_PUB_ACCEPT_HEADER, 354 ACTIVITY_PUB_ACCEPT_HEADER,
diff --git a/server/initializers/database.ts b/server/initializers/database.ts
index 1383bb33b..19b5a0466 100644
--- a/server/initializers/database.ts
+++ b/server/initializers/database.ts
@@ -18,7 +18,7 @@ import { UserModel } from '../models/account/user-interface'
18import { AccountVideoRateModel } from '../models/account/account-video-rate-interface' 18import { AccountVideoRateModel } from '../models/account/account-video-rate-interface'
19import { AccountFollowModel } from '../models/account/account-follow-interface' 19import { AccountFollowModel } from '../models/account/account-follow-interface'
20import { TagModel } from './../models/video/tag-interface' 20import { TagModel } from './../models/video/tag-interface'
21import { PodModel } from './../models/pod/pod-interface' 21import { ServerModel } from '../models/server/server-interface'
22import { OAuthTokenModel } from './../models/oauth/oauth-token-interface' 22import { OAuthTokenModel } from './../models/oauth/oauth-token-interface'
23import { OAuthClientModel } from './../models/oauth/oauth-client-interface' 23import { OAuthClientModel } from './../models/oauth/oauth-client-interface'
24import { JobModel } from './../models/job/job-interface' 24import { JobModel } from './../models/job/job-interface'
@@ -38,7 +38,7 @@ const database: {
38 Job?: JobModel, 38 Job?: JobModel,
39 OAuthClient?: OAuthClientModel, 39 OAuthClient?: OAuthClientModel,
40 OAuthToken?: OAuthTokenModel, 40 OAuthToken?: OAuthTokenModel,
41 Pod?: PodModel, 41 Server?: ServerModel,
42 Tag?: TagModel, 42 Tag?: TagModel,
43 AccountVideoRate?: AccountVideoRateModel, 43 AccountVideoRate?: AccountVideoRateModel,
44 AccountFollow?: AccountFollowModel, 44 AccountFollow?: AccountFollowModel,