From 1070831b2d0be43e94faeb22cefd3770e2a876f4 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Thu, 29 Aug 2019 23:15:34 +0300 Subject: [PATCH] Support a larger set of ActivityPub Actor types --- federation/entities/activitypub/mappers.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/federation/entities/activitypub/mappers.py b/federation/entities/activitypub/mappers.py index ae3857f..de26633 100644 --- a/federation/entities/activitypub/mappers.py +++ b/federation/entities/activitypub/mappers.py @@ -18,19 +18,27 @@ logger = logging.getLogger("federation") MAPPINGS = { "Accept": ActivitypubAccept, "Announce": ActivitypubShare, + "Application": ActivitypubProfile, "Article": ActivitypubPost, "Delete": ActivitypubRetraction, "Follow": ActivitypubFollow, # Technically not correct, but for now we support only following profiles + "Group": ActivitypubProfile, "Note": ActivitypubPost, + "Organization": ActivitypubProfile, "Page": ActivitypubPost, "Person": ActivitypubProfile, + "Service": ActivitypubProfile, } OBJECTS = ( + "Application", "Article", + "Group", "Note", + "Organization", "Page", "Person", + "Service", ) UNDO_MAPPINGS = {