From 79bd2632d62f2f600d663815fcc00a01ca981aa1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 Oct 2018 16:56:14 +0200 Subject: Add user moderation in the account page --- server/models/video/video-format-utils.ts | 2 +- server/models/video/video.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'server/models/video') diff --git a/server/models/video/video-format-utils.ts b/server/models/video/video-format-utils.ts index 78972b199..905e84449 100644 --- a/server/models/video/video-format-utils.ts +++ b/server/models/video/video-format-utils.ts @@ -10,7 +10,7 @@ import { getVideoLikesActivityPubUrl, getVideoSharesActivityPubUrl } from '../../lib/activitypub' -import { isArray } from 'util' +import { isArray } from '../../helpers/custom-validators/misc' export type VideoFormattingJSONOptions = { completeDescription?: boolean diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 0a2d7e6de..46d823240 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -94,7 +94,6 @@ import { import * as validator from 'validator' import { UserVideoHistoryModel } from '../account/user-video-history' - // FIXME: Define indexes here because there is an issue with TS and Sequelize.literal when called directly in the annotation const indexes: Sequelize.DefineIndexesOptions[] = [ buildTrigramSearchIndex('video_name_trigram', 'name'), -- cgit v1.2.3