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:
parent
d74d29ad9e
commit
2ba9287131
16 changed files with 117 additions and 49 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue