From 608624252466acf9f1d9ee1c1170bd4fe4d18d18 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 15 Nov 2017 11:00:25 +0100 Subject: Rename Pod -> Server --- server/initializers/constants.ts | 10 +++------- server/initializers/database.ts | 4 ++-- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'server/initializers') 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' import { VideoRateType, - RequestEndpoint, - RequestVideoEventType, - RequestVideoQaduType, - RemoteVideoRequestType, JobState, JobCategory } from '../../shared/models' @@ -220,7 +216,7 @@ const VIDEO_MIMETYPE_EXT = { // --------------------------------------------------------------------------- -// Score a pod has when we create it as a friend +// Score a server has when we create it as a friend const FRIEND_SCORE = { BASE: 100, MAX: 1000 @@ -243,7 +239,7 @@ const ACTIVITY_PUB = { // --------------------------------------------------------------------------- // Number of points we add/remove from a friend after a successful/bad request -const PODS_SCORE = { +const SERVERS_SCORE = { PENALTY: -10, BONUS: 10 } @@ -352,7 +348,7 @@ export { OAUTH_LIFETIME, OPENGRAPH_AND_OEMBED_COMMENT, PAGINATION_COUNT_DEFAULT, - PODS_SCORE, + SERVERS_SCORE, PREVIEWS_SIZE, REMOTE_SCHEME, 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' import { AccountVideoRateModel } from '../models/account/account-video-rate-interface' import { AccountFollowModel } from '../models/account/account-follow-interface' import { TagModel } from './../models/video/tag-interface' -import { PodModel } from './../models/pod/pod-interface' +import { ServerModel } from '../models/server/server-interface' import { OAuthTokenModel } from './../models/oauth/oauth-token-interface' import { OAuthClientModel } from './../models/oauth/oauth-client-interface' import { JobModel } from './../models/job/job-interface' @@ -38,7 +38,7 @@ const database: { Job?: JobModel, OAuthClient?: OAuthClientModel, OAuthToken?: OAuthTokenModel, - Pod?: PodModel, + Server?: ServerModel, Tag?: TagModel, AccountVideoRate?: AccountVideoRateModel, AccountFollow?: AccountFollowModel, -- cgit v1.2.3