Add ability for users to block an account/instance on server side

This commit is contained in:
Chocobozzz 2018-10-12 15:26:04 +02:00
parent dffd5d127f
commit 7ad9b9846c
33 changed files with 1344 additions and 56 deletions

View file

@ -29,6 +29,8 @@ import { VideoViewModel } from '../models/video/video-views'
import { VideoChangeOwnershipModel } from '../models/video/video-change-ownership'
import { VideoRedundancyModel } from '../models/redundancy/video-redundancy'
import { UserVideoHistoryModel } from '../models/account/user-video-history'
import { AccountBlocklistModel } from '../models/account/account-blocklist'
import { ServerBlocklistModel } from '../models/server/server-blocklist'
require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string
@ -91,7 +93,9 @@ async function initDatabaseModels (silent: boolean) {
VideoImportModel,
VideoViewModel,
VideoRedundancyModel,
UserVideoHistoryModel
UserVideoHistoryModel,
AccountBlocklistModel,
ServerBlocklistModel
])
// Check extensions exist in the database