From af53ee7c7d93f23002591583b56ea5d440b11e46 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Wed, 5 Dec 2018 17:14:33 +0100 Subject: [PATCH] Ensure all our AP types are present --- api/funkwhale_api/federation/activity.py | 50 ++++++++++++++++-------- 1 file changed, 33 insertions(+), 17 deletions(-) diff --git a/api/funkwhale_api/federation/activity.py b/api/funkwhale_api/federation/activity.py index 93ca6d93e..211b8230a 100644 --- a/api/funkwhale_api/federation/activity.py +++ b/api/funkwhale_api/federation/activity.py @@ -42,23 +42,39 @@ ACTIVITY_TYPES = [ "View", ] - -OBJECT_TYPES = [ - "Article", - "Audio", - "Collection", - "Document", - "Event", - "Image", - "Note", - "OrderedCollection", - "Page", - "Place", - "Profile", - "Relationship", - "Tombstone", - "Video", -] + ACTIVITY_TYPES +FUNKWHALE_OBJECT_TYPES = [ + ("Domain", "Domain"), + ("Artist", "Artist"), + ("Album", "Album"), + ("Track", "Track"), + ("Library", "Library"), +] +OBJECT_TYPES = ( + [ + "Application", + "Article", + "Audio", + "Collection", + "Document", + "Event", + "Group", + "Image", + "Note", + "Object", + "OrderedCollection", + "Organization", + "Page", + "Person", + "Place", + "Profile", + "Relationship", + "Service", + "Tombstone", + "Video", + ] + + ACTIVITY_TYPES + + FUNKWHALE_OBJECT_TYPES +) BROADCAST_TO_USER_ACTIVITIES = ["Follow", "Accept"]