diff options
author | Chocobozzz <me@florianbigard.com> | 2022-09-23 15:32:56 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-09-23 15:38:21 +0200 |
commit | 4f3814808791d8f380e75d152e0e14a01b758b9a (patch) | |
tree | bd9778c89e114f2325dfb756f0208c0fe353c212 /server/lib/moderation.ts | |
parent | 255c00305c899d8db829b07b49d06cd2fea7ca02 (diff) | |
download | PeerTube-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.ts | 4 |
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 @@ | |||
1 | import { VideoUploadFile } from 'express' | 1 | import express, { VideoUploadFile } from 'express' |
2 | import { PathLike } from 'fs-extra' | 2 | import { PathLike } from 'fs-extra' |
3 | import { Transaction } from 'sequelize/types' | 3 | import { Transaction } from 'sequelize/types' |
4 | import { AbuseAuditView, auditLoggerFactory } from '@server/helpers/audit-logger' | 4 | import { 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 |
60 | function isLocalVideoThreadAccepted (_object: { | 60 | function 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 |
69 | function isLocalVideoCommentReplyAccepted (_object: { | 70 | function isLocalVideoCommentReplyAccepted (_object: { |
71 | req: express.Request | ||
70 | commentBody: VideoCommentCreate | 72 | commentBody: VideoCommentCreate |
71 | parentComment: VideoCommentModel | 73 | parentComment: VideoCommentModel |
72 | video: VideoModel | 74 | video: VideoModel |