aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/custom-validators/activitypub/undo.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/activitypub/undo.ts b/server/helpers/custom-validators/activitypub/undo.ts
index a2831b0bf..f50f224fa 100644
--- a/server/helpers/custom-validators/activitypub/undo.ts
+++ b/server/helpers/custom-validators/activitypub/undo.ts
@@ -1,13 +1,15 @@
1import { isActorFollowActivityValid } from './actor' 1import { isActorFollowActivityValid } from './actor'
2import { isBaseActivityValid } from './misc' 2import { isBaseActivityValid } from './misc'
3import { isDislikeActivityValid, isLikeActivityValid } from './rate' 3import { isDislikeActivityValid, isLikeActivityValid } from './rate'
4import { isAnnounceActivityValid } from './announce'
4 5
5function isUndoActivityValid (activity: any) { 6function isUndoActivityValid (activity: any) {
6 return isBaseActivityValid(activity, 'Undo') && 7 return isBaseActivityValid(activity, 'Undo') &&
7 ( 8 (
8 isActorFollowActivityValid(activity.object) || 9 isActorFollowActivityValid(activity.object) ||
9 isLikeActivityValid(activity.object) || 10 isLikeActivityValid(activity.object) ||
10 isDislikeActivityValid(activity.object) 11 isDislikeActivityValid(activity.object) ||
12 isAnnounceActivityValid(activity.object)
11 ) 13 )
12} 14}
13 15