diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/activitypub/inbox.ts | 3 | ||||
-rw-r--r-- | server/controllers/webfinger.ts | 4 | ||||
-rw-r--r-- | server/helpers/custom-validators/videos.ts | 18 | ||||
-rw-r--r-- | server/lib/activitypub/index.ts | 1 | ||||
-rw-r--r-- | server/lib/activitypub/process-add.ts | 4 | ||||
-rw-r--r-- | server/lib/activitypub/process-announce.ts | 10 | ||||
-rw-r--r-- | server/lib/activitypub/process-create.ts | 2 | ||||
-rw-r--r-- | server/lib/activitypub/process-delete.ts | 2 | ||||
-rw-r--r-- | server/lib/activitypub/process-flag.ts | 17 | ||||
-rw-r--r-- | server/lib/activitypub/process-update.ts | 2 | ||||
-rw-r--r-- | server/lib/activitypub/send-request.ts | 2 | ||||
-rw-r--r-- | server/lib/jobs/job-scheduler.ts | 1 | ||||
-rw-r--r-- | server/lib/video-channel.ts | 8 | ||||
-rw-r--r-- | server/middlewares/validators/account.ts | 9 | ||||
-rw-r--r-- | server/middlewares/validators/webfinger.ts | 2 | ||||
-rw-r--r-- | server/models/account/account-video-rate-interface.ts | 6 | ||||
-rw-r--r-- | server/models/account/account.ts | 27 | ||||
-rw-r--r-- | server/tests/api/check-params/follows.ts | 13 | ||||
-rw-r--r-- | server/tests/api/index-slow.ts | 2 |
19 files changed, 46 insertions, 87 deletions
diff --git a/server/controllers/activitypub/inbox.ts b/server/controllers/activitypub/inbox.ts index 5f47648df..fd3695886 100644 --- a/server/controllers/activitypub/inbox.ts +++ b/server/controllers/activitypub/inbox.ts | |||
@@ -2,7 +2,7 @@ import * as express from 'express' | |||
2 | import { Activity, ActivityPubCollection, ActivityPubOrderedCollection, ActivityType, RootActivity } from '../../../shared' | 2 | import { Activity, ActivityPubCollection, ActivityPubOrderedCollection, ActivityType, RootActivity } from '../../../shared' |
3 | import { logger } from '../../helpers' | 3 | import { logger } from '../../helpers' |
4 | import { isActivityValid } from '../../helpers/custom-validators/activitypub/activity' | 4 | import { isActivityValid } from '../../helpers/custom-validators/activitypub/activity' |
5 | import { processCreateActivity, processFlagActivity, processUpdateActivity } from '../../lib' | 5 | import { processCreateActivity, processUpdateActivity } from '../../lib' |
6 | import { processAcceptActivity } from '../../lib/activitypub/process-accept' | 6 | import { processAcceptActivity } from '../../lib/activitypub/process-accept' |
7 | import { processAddActivity } from '../../lib/activitypub/process-add' | 7 | import { processAddActivity } from '../../lib/activitypub/process-add' |
8 | import { processAnnounceActivity } from '../../lib/activitypub/process-announce' | 8 | import { processAnnounceActivity } from '../../lib/activitypub/process-announce' |
@@ -16,7 +16,6 @@ const processActivity: { [ P in ActivityType ]: (activity: Activity, inboxAccoun | |||
16 | Create: processCreateActivity, | 16 | Create: processCreateActivity, |
17 | Add: processAddActivity, | 17 | Add: processAddActivity, |
18 | Update: processUpdateActivity, | 18 | Update: processUpdateActivity, |
19 | Flag: processFlagActivity, | ||
20 | Delete: processDeleteActivity, | 19 | Delete: processDeleteActivity, |
21 | Follow: processFollowActivity, | 20 | Follow: processFollowActivity, |
22 | Accept: processAcceptActivity, | 21 | Accept: processAcceptActivity, |
diff --git a/server/controllers/webfinger.ts b/server/controllers/webfinger.ts index 102ac0937..cc28a8909 100644 --- a/server/controllers/webfinger.ts +++ b/server/controllers/webfinger.ts | |||
@@ -1,8 +1,4 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | |||
3 | import { CONFIG, PREVIEWS_SIZE, EMBED_SIZE } from '../initializers' | ||
4 | import { oembedValidator } from '../middlewares' | ||
5 | import { VideoInstance } from '../models' | ||
6 | import { webfingerValidator } from '../middlewares/validators/webfinger' | 2 | import { webfingerValidator } from '../middlewares/validators/webfinger' |
7 | import { AccountInstance } from '../models/account/account-interface' | 3 | import { AccountInstance } from '../models/account/account-interface' |
8 | 4 | ||
diff --git a/server/helpers/custom-validators/videos.ts b/server/helpers/custom-validators/videos.ts index c97c9a2ad..07aadadb1 100644 --- a/server/helpers/custom-validators/videos.ts +++ b/server/helpers/custom-validators/videos.ts | |||
@@ -1,25 +1,23 @@ | |||
1 | import { values } from 'lodash' | ||
2 | import * as validator from 'validator' | ||
3 | import * as Promise from 'bluebird' | 1 | import * as Promise from 'bluebird' |
4 | import * as express from 'express' | 2 | import * as express from 'express' |
5 | import 'express-validator' | 3 | import 'express-validator' |
4 | import { values } from 'lodash' | ||
6 | import 'multer' | 5 | import 'multer' |
7 | 6 | import * as validator from 'validator' | |
7 | import { VideoRateType } from '../../../shared' | ||
8 | import { logger } from '../../helpers' | ||
8 | import { | 9 | import { |
9 | CONSTRAINTS_FIELDS, | 10 | CONSTRAINTS_FIELDS, |
11 | database as db, | ||
10 | VIDEO_CATEGORIES, | 12 | VIDEO_CATEGORIES, |
11 | VIDEO_LICENCES, | ||
12 | VIDEO_LANGUAGES, | 13 | VIDEO_LANGUAGES, |
13 | VIDEO_RATE_TYPES, | 14 | VIDEO_LICENCES, |
14 | VIDEO_PRIVACIES, | 15 | VIDEO_PRIVACIES, |
15 | database as db | 16 | VIDEO_RATE_TYPES |
16 | } from '../../initializers' | 17 | } from '../../initializers' |
17 | import { isUserUsernameValid } from './users' | ||
18 | import { isArray, exists } from './misc' | ||
19 | import { VideoInstance } from '../../models' | 18 | import { VideoInstance } from '../../models' |
20 | import { logger } from '../../helpers' | ||
21 | import { VideoRateType } from '../../../shared' | ||
22 | import { isActivityPubUrlValid } from './activitypub/misc' | 19 | import { isActivityPubUrlValid } from './activitypub/misc' |
20 | import { exists, isArray } from './misc' | ||
23 | 21 | ||
24 | const VIDEOS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEOS | 22 | const VIDEOS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEOS |
25 | const VIDEO_ABUSES_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEO_ABUSES | 23 | const VIDEO_ABUSES_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEO_ABUSES |
diff --git a/server/lib/activitypub/index.ts b/server/lib/activitypub/index.ts index dca446fd4..e08108aac 100644 --- a/server/lib/activitypub/index.ts +++ b/server/lib/activitypub/index.ts | |||
@@ -3,7 +3,6 @@ export * from './process-add' | |||
3 | export * from './process-announce' | 3 | export * from './process-announce' |
4 | export * from './process-create' | 4 | export * from './process-create' |
5 | export * from './process-delete' | 5 | export * from './process-delete' |
6 | export * from './process-flag' | ||
7 | export * from './process-follow' | 6 | export * from './process-follow' |
8 | export * from './process-update' | 7 | export * from './process-update' |
9 | export * from './send-request' | 8 | export * from './send-request' |
diff --git a/server/lib/activitypub/process-add.ts b/server/lib/activitypub/process-add.ts index c83d9e98e..e1769bee8 100644 --- a/server/lib/activitypub/process-add.ts +++ b/server/lib/activitypub/process-add.ts | |||
@@ -17,7 +17,7 @@ async function processAddActivity (activity: ActivityAdd) { | |||
17 | const videoChannelUrl = activity.target | 17 | const videoChannelUrl = activity.target |
18 | const videoChannel = await getOrCreateVideoChannel(account, videoChannelUrl) | 18 | const videoChannel = await getOrCreateVideoChannel(account, videoChannelUrl) |
19 | 19 | ||
20 | return processAddVideo(account, activity, videoChannel, activityObject as VideoTorrentObject) | 20 | return processAddVideo(account, activity, videoChannel, activityObject) |
21 | } | 21 | } |
22 | 22 | ||
23 | logger.warn('Unknown activity object type %s when creating activity.', activityType, { activity: activity.id }) | 23 | logger.warn('Unknown activity object type %s when creating activity.', activityType, { activity: activity.id }) |
@@ -68,7 +68,7 @@ function addRemoteVideo ( | |||
68 | 68 | ||
69 | const videoCreated = await video.save(sequelizeOptions) | 69 | const videoCreated = await video.save(sequelizeOptions) |
70 | 70 | ||
71 | const videoFileAttributes = await videoFileActivityUrlToDBAttributes(videoCreated, videoToCreateData) | 71 | const videoFileAttributes = videoFileActivityUrlToDBAttributes(videoCreated, videoToCreateData) |
72 | if (videoFileAttributes.length === 0) { | 72 | if (videoFileAttributes.length === 0) { |
73 | throw new Error('Cannot find valid files for video %s ' + videoToCreateData.url) | 73 | throw new Error('Cannot find valid files for video %s ' + videoToCreateData.url) |
74 | } | 74 | } |
diff --git a/server/lib/activitypub/process-announce.ts b/server/lib/activitypub/process-announce.ts index f9674e095..eb38aecca 100644 --- a/server/lib/activitypub/process-announce.ts +++ b/server/lib/activitypub/process-announce.ts | |||
@@ -1,13 +1,11 @@ | |||
1 | import { ActivityAnnounce } from '../../../shared/models/activitypub/activity' | 1 | import { ActivityAnnounce } from '../../../shared/models/activitypub/activity' |
2 | import { VideoChannelObject } from '../../../shared/models/activitypub/objects/video-channel-object' | 2 | import { getOrCreateAccount } from '../../helpers/activitypub' |
3 | import { VideoTorrentObject } from '../../../shared/models/activitypub/objects/video-torrent-object' | ||
4 | import { logger } from '../../helpers/logger' | 3 | import { logger } from '../../helpers/logger' |
5 | import { processAddActivity } from './process-add' | ||
6 | import { processCreateActivity } from './process-create' | ||
7 | import { database as db } from '../../initializers/index' | 4 | import { database as db } from '../../initializers/index' |
8 | import { getOrCreateAccount } from '../../helpers/activitypub' | ||
9 | import { VideoChannelInstance } from '../../models/video/video-channel-interface' | ||
10 | import { VideoInstance } from '../../models/index' | 5 | import { VideoInstance } from '../../models/index' |
6 | import { VideoChannelInstance } from '../../models/video/video-channel-interface' | ||
7 | import { processAddActivity } from './process-add' | ||
8 | import { processCreateActivity } from './process-create' | ||
11 | 9 | ||
12 | async function processAnnounceActivity (activity: ActivityAnnounce) { | 10 | async function processAnnounceActivity (activity: ActivityAnnounce) { |
13 | const announcedActivity = activity.object | 11 | const announcedActivity = activity.object |
diff --git a/server/lib/activitypub/process-create.ts b/server/lib/activitypub/process-create.ts index faea3f48a..de8e09adf 100644 --- a/server/lib/activitypub/process-create.ts +++ b/server/lib/activitypub/process-create.ts | |||
@@ -72,7 +72,7 @@ function addRemoteVideoAbuse (account: AccountInstance, videoAbuseToCreateData: | |||
72 | const video = await db.Video.loadByUrlAndPopulateAccount(videoAbuseToCreateData.object, t) | 72 | const video = await db.Video.loadByUrlAndPopulateAccount(videoAbuseToCreateData.object, t) |
73 | if (!video) { | 73 | if (!video) { |
74 | logger.warn('Unknown video %s for remote video abuse.', videoAbuseToCreateData.object) | 74 | logger.warn('Unknown video %s for remote video abuse.', videoAbuseToCreateData.object) |
75 | return | 75 | return undefined |
76 | } | 76 | } |
77 | 77 | ||
78 | const videoAbuseData = { | 78 | const videoAbuseData = { |
diff --git a/server/lib/activitypub/process-delete.ts b/server/lib/activitypub/process-delete.ts index d4487d2cc..0d5756e9c 100644 --- a/server/lib/activitypub/process-delete.ts +++ b/server/lib/activitypub/process-delete.ts | |||
@@ -28,7 +28,7 @@ async function processDeleteActivity (activity: ActivityDelete) { | |||
28 | } | 28 | } |
29 | } | 29 | } |
30 | 30 | ||
31 | return undefined | 31 | return |
32 | } | 32 | } |
33 | 33 | ||
34 | // --------------------------------------------------------------------------- | 34 | // --------------------------------------------------------------------------- |
diff --git a/server/lib/activitypub/process-flag.ts b/server/lib/activitypub/process-flag.ts deleted file mode 100644 index b562dce4d..000000000 --- a/server/lib/activitypub/process-flag.ts +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | import { | ||
2 | ActivityCreate, | ||
3 | VideoTorrentObject, | ||
4 | VideoChannelObject | ||
5 | } from '../../../shared' | ||
6 | |||
7 | function processFlagActivity (activity: ActivityCreate) { | ||
8 | return Promise.resolve(undefined) | ||
9 | } | ||
10 | |||
11 | // --------------------------------------------------------------------------- | ||
12 | |||
13 | export { | ||
14 | processFlagActivity | ||
15 | } | ||
16 | |||
17 | // --------------------------------------------------------------------------- | ||
diff --git a/server/lib/activitypub/process-update.ts b/server/lib/activitypub/process-update.ts index b732fce33..a9aa5eeb4 100644 --- a/server/lib/activitypub/process-update.ts +++ b/server/lib/activitypub/process-update.ts | |||
@@ -80,7 +80,7 @@ async function updateRemoteVideo (account: AccountInstance, videoAttributesToUpd | |||
80 | } | 80 | } |
81 | await Promise.all(videoFileDestroyTasks) | 81 | await Promise.all(videoFileDestroyTasks) |
82 | 82 | ||
83 | const videoFileAttributes = await videoFileActivityUrlToDBAttributes(videoInstance, videoAttributesToUpdate) | 83 | const videoFileAttributes = videoFileActivityUrlToDBAttributes(videoInstance, videoAttributesToUpdate) |
84 | const tasks: Bluebird<any>[] = videoFileAttributes.map(f => db.VideoFile.create(f)) | 84 | const tasks: Bluebird<any>[] = videoFileAttributes.map(f => db.VideoFile.create(f)) |
85 | await Promise.all(tasks) | 85 | await Promise.all(tasks) |
86 | 86 | ||
diff --git a/server/lib/activitypub/send-request.ts b/server/lib/activitypub/send-request.ts index 68a631a36..261ff04ab 100644 --- a/server/lib/activitypub/send-request.ts +++ b/server/lib/activitypub/send-request.ts | |||
@@ -147,7 +147,7 @@ async function broadcastToFollowers (data: any, byAccount: AccountInstance, toAc | |||
147 | const result = await db.AccountFollow.listAcceptedFollowerSharedInboxUrls(toAccountFollowerIds) | 147 | const result = await db.AccountFollow.listAcceptedFollowerSharedInboxUrls(toAccountFollowerIds) |
148 | if (result.data.length === 0) { | 148 | if (result.data.length === 0) { |
149 | logger.info('Not broadcast because of 0 followers for %s.', toAccountFollowerIds.join(', ')) | 149 | logger.info('Not broadcast because of 0 followers for %s.', toAccountFollowerIds.join(', ')) |
150 | return | 150 | return undefined |
151 | } | 151 | } |
152 | 152 | ||
153 | const jobPayload = { | 153 | const jobPayload = { |
diff --git a/server/lib/jobs/job-scheduler.ts b/server/lib/jobs/job-scheduler.ts index 73c440279..62ce6927e 100644 --- a/server/lib/jobs/job-scheduler.ts +++ b/server/lib/jobs/job-scheduler.ts | |||
@@ -4,7 +4,6 @@ import { JobCategory } from '../../../shared' | |||
4 | import { logger } from '../../helpers' | 4 | import { logger } from '../../helpers' |
5 | import { database as db, JOB_STATES, JOBS_FETCH_LIMIT_PER_CYCLE, JOBS_FETCHING_INTERVAL } from '../../initializers' | 5 | import { database as db, JOB_STATES, JOBS_FETCH_LIMIT_PER_CYCLE, JOBS_FETCHING_INTERVAL } from '../../initializers' |
6 | import { JobInstance } from '../../models' | 6 | import { JobInstance } from '../../models' |
7 | import { error } from 'util' | ||
8 | 7 | ||
9 | export interface JobHandler<P, T> { | 8 | export interface JobHandler<P, T> { |
10 | process (data: object, jobId: number): Promise<T> | 9 | process (data: object, jobId: number): Promise<T> |
diff --git a/server/lib/video-channel.ts b/server/lib/video-channel.ts index 6f9ae2d95..5bb1814ea 100644 --- a/server/lib/video-channel.ts +++ b/server/lib/video-channel.ts | |||
@@ -1,11 +1,9 @@ | |||
1 | import * as Sequelize from 'sequelize' | 1 | import * as Sequelize from 'sequelize' |
2 | 2 | import { VideoChannelCreate } from '../../shared/models' | |
3 | import { database as db } from '../initializers' | ||
4 | import { logger } from '../helpers' | 3 | import { logger } from '../helpers' |
4 | import { getActivityPubUrl } from '../helpers/activitypub' | ||
5 | import { database as db } from '../initializers' | ||
5 | import { AccountInstance } from '../models' | 6 | import { AccountInstance } from '../models' |
6 | import { VideoChannelCreate } from '../../shared/models' | ||
7 | import { sendCreateVideoChannel } from './activitypub/send-request' | ||
8 | import { getActivityPubUrl, shareVideoChannelByServer } from '../helpers/activitypub' | ||
9 | 7 | ||
10 | async function createVideoChannel (videoChannelInfo: VideoChannelCreate, account: AccountInstance, t: Sequelize.Transaction) { | 8 | async function createVideoChannel (videoChannelInfo: VideoChannelCreate, account: AccountInstance, t: Sequelize.Transaction) { |
11 | const videoChannelData = { | 9 | const videoChannelData = { |
diff --git a/server/middlewares/validators/account.ts b/server/middlewares/validators/account.ts index 58eeed3cc..07ae76b63 100644 --- a/server/middlewares/validators/account.ts +++ b/server/middlewares/validators/account.ts | |||
@@ -1,13 +1,6 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import { param } from 'express-validator/check' | 2 | import { param } from 'express-validator/check' |
3 | import { | 3 | import { logger } from '../../helpers' |
4 | isUserDisplayNSFWValid, | ||
5 | isUserPasswordValid, | ||
6 | isUserRoleValid, | ||
7 | isUserUsernameValid, | ||
8 | isUserVideoQuotaValid, | ||
9 | logger | ||
10 | } from '../../helpers' | ||
11 | import { isAccountNameValid } from '../../helpers/custom-validators/accounts' | 4 | import { isAccountNameValid } from '../../helpers/custom-validators/accounts' |
12 | import { database as db } from '../../initializers/database' | 5 | import { database as db } from '../../initializers/database' |
13 | import { AccountInstance } from '../../models' | 6 | import { AccountInstance } from '../../models' |
diff --git a/server/middlewares/validators/webfinger.ts b/server/middlewares/validators/webfinger.ts index 068e03ad7..3e61a6cc3 100644 --- a/server/middlewares/validators/webfinger.ts +++ b/server/middlewares/validators/webfinger.ts | |||
@@ -14,7 +14,7 @@ const webfingerValidator = [ | |||
14 | checkErrors(req, res, () => { | 14 | checkErrors(req, res, () => { |
15 | // Remove 'acct:' from the beginning of the string | 15 | // Remove 'acct:' from the beginning of the string |
16 | const nameWithHost = req.query.resource.substr(5) | 16 | const nameWithHost = req.query.resource.substr(5) |
17 | const [ name, ] = nameWithHost.split('@') | 17 | const [ name ] = nameWithHost.split('@') |
18 | 18 | ||
19 | db.Account.loadLocalByName(name) | 19 | db.Account.loadLocalByName(name) |
20 | .then(account => { | 20 | .then(account => { |
diff --git a/server/models/account/account-video-rate-interface.ts b/server/models/account/account-video-rate-interface.ts index 82cbe38cc..316056246 100644 --- a/server/models/account/account-video-rate-interface.ts +++ b/server/models/account/account-video-rate-interface.ts | |||
@@ -17,10 +17,12 @@ export interface AccountVideoRateAttributes { | |||
17 | videoId: number | 17 | videoId: number |
18 | } | 18 | } |
19 | 19 | ||
20 | export interface AccountVideoRateInstance extends AccountVideoRateClass, AccountVideoRateAttributes, Sequelize.Instance<AccountVideoRateAttributes> { | 20 | export interface AccountVideoRateInstance |
21 | extends AccountVideoRateClass, AccountVideoRateAttributes, Sequelize.Instance<AccountVideoRateAttributes> { | ||
21 | id: number | 22 | id: number |
22 | createdAt: Date | 23 | createdAt: Date |
23 | updatedAt: Date | 24 | updatedAt: Date |
24 | } | 25 | } |
25 | 26 | ||
26 | export interface AccountVideoRateModel extends AccountVideoRateClass, Sequelize.Model<AccountVideoRateInstance, AccountVideoRateAttributes> {} | 27 | export interface AccountVideoRateModel |
28 | extends AccountVideoRateClass, Sequelize.Model<AccountVideoRateInstance, AccountVideoRateAttributes> {} | ||
diff --git a/server/models/account/account.ts b/server/models/account/account.ts index c370e1709..faf5fa841 100644 --- a/server/models/account/account.ts +++ b/server/models/account/account.ts | |||
@@ -1,29 +1,24 @@ | |||
1 | import * as Sequelize from 'sequelize' | 1 | import * as Sequelize from 'sequelize' |
2 | 2 | ||
3 | import { | 3 | import { |
4 | isUserUsernameValid, | 4 | activityPubContextify, |
5 | isAccountPublicKeyValid, | ||
6 | isAccountUrlValid, | ||
7 | isAccountPrivateKeyValid, | ||
8 | isAccountFollowersCountValid, | 5 | isAccountFollowersCountValid, |
6 | isAccountFollowersValid, | ||
9 | isAccountFollowingCountValid, | 7 | isAccountFollowingCountValid, |
8 | isAccountFollowingValid, | ||
10 | isAccountInboxValid, | 9 | isAccountInboxValid, |
11 | isAccountOutboxValid, | 10 | isAccountOutboxValid, |
11 | isAccountPrivateKeyValid, | ||
12 | isAccountPublicKeyValid, | ||
12 | isAccountSharedInboxValid, | 13 | isAccountSharedInboxValid, |
13 | isAccountFollowersValid, | 14 | isAccountUrlValid, |
14 | isAccountFollowingValid, | 15 | isUserUsernameValid |
15 | activityPubContextify | ||
16 | } from '../../helpers' | 16 | } from '../../helpers' |
17 | |||
18 | import { addMethodsToModel, getSort } from '../utils' | ||
19 | import { | ||
20 | AccountInstance, | ||
21 | AccountAttributes, | ||
22 | |||
23 | AccountMethods | ||
24 | } from './account-interface' | ||
25 | import { sendDeleteAccount } from '../../lib/activitypub/send-request' | ||
26 | import { CONFIG, CONSTRAINTS_FIELDS } from '../../initializers/constants' | 17 | import { CONFIG, CONSTRAINTS_FIELDS } from '../../initializers/constants' |
18 | import { sendDeleteAccount } from '../../lib/activitypub/send-request' | ||
19 | |||
20 | import { addMethodsToModel } from '../utils' | ||
21 | import { AccountAttributes, AccountInstance, AccountMethods } from './account-interface' | ||
27 | 22 | ||
28 | let Account: Sequelize.Model<AccountInstance, AccountAttributes> | 23 | let Account: Sequelize.Model<AccountInstance, AccountAttributes> |
29 | let loadAccountByServerAndUUID: AccountMethods.LoadAccountByServerAndUUID | 24 | let loadAccountByServerAndUUID: AccountMethods.LoadAccountByServerAndUUID |
diff --git a/server/tests/api/check-params/follows.ts b/server/tests/api/check-params/follows.ts index d742200c1..a215e7b1a 100644 --- a/server/tests/api/check-params/follows.ts +++ b/server/tests/api/check-params/follows.ts | |||
@@ -1,17 +1,16 @@ | |||
1 | /* tslint:disable:no-unused-expression */ | 1 | /* tslint:disable:no-unused-expression */ |
2 | 2 | ||
3 | import * as request from 'supertest' | ||
4 | import 'mocha' | 3 | import 'mocha' |
4 | import * as request from 'supertest' | ||
5 | 5 | ||
6 | import { | 6 | import { |
7 | ServerInfo, | ||
8 | flushTests, | ||
9 | runServer, | ||
10 | createUser, | 7 | createUser, |
11 | loginAndGetAccessToken, | 8 | flushTests, |
12 | setAccessTokensToServers, | ||
13 | killallServers, | 9 | killallServers, |
14 | makePostBodyRequest | 10 | loginAndGetAccessToken, |
11 | runServer, | ||
12 | ServerInfo, | ||
13 | setAccessTokensToServers | ||
15 | } from '../../utils' | 14 | } from '../../utils' |
16 | 15 | ||
17 | describe('Test server follows API validators', function () { | 16 | describe('Test server follows API validators', function () { |
diff --git a/server/tests/api/index-slow.ts b/server/tests/api/index-slow.ts index e554c25f8..b3c3d778c 100644 --- a/server/tests/api/index-slow.ts +++ b/server/tests/api/index-slow.ts | |||
@@ -1,3 +1,3 @@ | |||
1 | // Order of the tests we want to execute | 1 | // Order of the tests we want to execute |
2 | import './multiple-servers' | 2 | // import './multiple-servers' |
3 | import './video-transcoder' | 3 | import './video-transcoder' |