aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/moderation.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-23 15:32:56 +0200
committerChocobozzz <me@florianbigard.com>2022-09-23 15:38:21 +0200
commit4f3814808791d8f380e75d152e0e14a01b758b9a (patch)
treebd9778c89e114f2325dfb756f0208c0fe353c212 /server/lib/moderation.ts
parent255c00305c899d8db829b07b49d06cd2fea7ca02 (diff)
downloadPeerTube-4f3814808791d8f380e75d152e0e14a01b758b9a.tar.gz
PeerTube-4f3814808791d8f380e75d152e0e14a01b758b9a.tar.zst
PeerTube-4f3814808791d8f380e75d152e0e14a01b758b9a.zip
Add akismet tests
Diffstat (limited to 'server/lib/moderation.ts')
-rw-r--r--server/lib/moderation.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/lib/moderation.ts b/server/lib/moderation.ts
index 43c58c980..3cc92ca30 100644
--- a/server/lib/moderation.ts
+++ b/server/lib/moderation.ts
@@ -1,4 +1,4 @@
1import { VideoUploadFile } from 'express' 1import express, { VideoUploadFile } from 'express'
2import { PathLike } from 'fs-extra' 2import { PathLike } from 'fs-extra'
3import { Transaction } from 'sequelize/types' 3import { Transaction } from 'sequelize/types'
4import { AbuseAuditView, auditLoggerFactory } from '@server/helpers/audit-logger' 4import { AbuseAuditView, auditLoggerFactory } from '@server/helpers/audit-logger'
@@ -58,6 +58,7 @@ function isLocalLiveVideoAccepted (object: {
58 58
59// Stub function that can be filtered by plugins 59// Stub function that can be filtered by plugins
60function isLocalVideoThreadAccepted (_object: { 60function isLocalVideoThreadAccepted (_object: {
61 req: express.Request
61 commentBody: VideoCommentCreate 62 commentBody: VideoCommentCreate
62 video: VideoModel 63 video: VideoModel
63 user: UserModel 64 user: UserModel
@@ -67,6 +68,7 @@ function isLocalVideoThreadAccepted (_object: {
67 68
68// Stub function that can be filtered by plugins 69// Stub function that can be filtered by plugins
69function isLocalVideoCommentReplyAccepted (_object: { 70function isLocalVideoCommentReplyAccepted (_object: {
71 req: express.Request
70 commentBody: VideoCommentCreate 72 commentBody: VideoCommentCreate
71 parentComment: VideoCommentModel 73 parentComment: VideoCommentModel
72 video: VideoModel 74 video: VideoModel