diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/custom-validators/activitypub/undo.ts | 4 |
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 @@ | |||
1 | import { isActorFollowActivityValid } from './actor' | 1 | import { isActorFollowActivityValid } from './actor' |
2 | import { isBaseActivityValid } from './misc' | 2 | import { isBaseActivityValid } from './misc' |
3 | import { isDislikeActivityValid, isLikeActivityValid } from './rate' | 3 | import { isDislikeActivityValid, isLikeActivityValid } from './rate' |
4 | import { isAnnounceActivityValid } from './announce' | ||
4 | 5 | ||
5 | function isUndoActivityValid (activity: any) { | 6 | function 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 | ||