From 5cf84858d49f4231cc4efec5e3132f17f65f6cf6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 4 Sep 2018 10:22:10 +0200 Subject: Add federation to ownership change --- server/helpers/custom-validators/activitypub/undo.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/helpers/custom-validators/activitypub') 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 @@ import { isActorFollowActivityValid } from './actor' import { isBaseActivityValid } from './misc' import { isDislikeActivityValid, isLikeActivityValid } from './rate' +import { isAnnounceActivityValid } from './announce' function isUndoActivityValid (activity: any) { return isBaseActivityValid(activity, 'Undo') && ( isActorFollowActivityValid(activity.object) || isLikeActivityValid(activity.object) || - isDislikeActivityValid(activity.object) + isDislikeActivityValid(activity.object) || + isAnnounceActivityValid(activity.object) ) } -- cgit v1.2.3