From d7a7c248b36af5f9cf7375ba62720e4a1530eca6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 19 Dec 2017 17:07:58 +0100 Subject: Handle mastodon shares --- server/helpers/custom-validators/activitypub/announce.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/helpers/custom-validators') diff --git a/server/helpers/custom-validators/activitypub/announce.ts b/server/helpers/custom-validators/activitypub/announce.ts index 80511129c..469ed5127 100644 --- a/server/helpers/custom-validators/activitypub/announce.ts +++ b/server/helpers/custom-validators/activitypub/announce.ts @@ -1,9 +1,11 @@ -import { isBaseActivityValid } from './misc' +import { isActivityPubUrlValid, isBaseActivityValid } from './misc' import { isVideoTorrentCreateActivityValid } from './videos' function isAnnounceActivityValid (activity: any) { + console.log(activity) return isBaseActivityValid(activity, 'Announce') && ( + isActivityPubUrlValid(activity.object) || isVideoTorrentCreateActivityValid(activity.object) ) } -- cgit v1.2.3