1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Cleanup invalid rates/comments/shares

This commit is contained in:
Chocobozzz 2019-03-19 16:23:02 +01:00
parent d74d29ad9e
commit 2ba9287131
No known key found for this signature in database
GPG key ID: 583A612D890159BE
16 changed files with 117 additions and 49 deletions

View file

@ -6,13 +6,12 @@ import * as flatten from 'flat'
import * as winston from 'winston'
import { CONFIG } from '../initializers'
import { jsonLoggerFormat, labelFormatter } from './logger'
import { VideoDetails, User, VideoChannel, VideoAbuse, VideoImport } from '../../shared'
import { User, VideoAbuse, VideoChannel, VideoDetails, VideoImport } from '../../shared'
import { VideoComment } from '../../shared/models/videos/video-comment.model'
import { CustomConfig } from '../../shared/models/server/custom-config.model'
import { UserModel } from '../models/account/user'
function getAuditIdFromRes (res: express.Response) {
return (res.locals.oauth.token.User as UserModel).username
return res.locals.oauth.token.User.username
}
enum AUDIT_TYPE {