Support a larger set of ActivityPub Actor types

mentions
Jason Robinson 2019-08-29 23:15:34 +03:00
rodzic da2d436fdf
commit 1070831b2d
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -18,19 +18,27 @@ logger = logging.getLogger("federation")
MAPPINGS = { MAPPINGS = {
"Accept": ActivitypubAccept, "Accept": ActivitypubAccept,
"Announce": ActivitypubShare, "Announce": ActivitypubShare,
"Application": ActivitypubProfile,
"Article": ActivitypubPost, "Article": ActivitypubPost,
"Delete": ActivitypubRetraction, "Delete": ActivitypubRetraction,
"Follow": ActivitypubFollow, # Technically not correct, but for now we support only following profiles "Follow": ActivitypubFollow, # Technically not correct, but for now we support only following profiles
"Group": ActivitypubProfile,
"Note": ActivitypubPost, "Note": ActivitypubPost,
"Organization": ActivitypubProfile,
"Page": ActivitypubPost, "Page": ActivitypubPost,
"Person": ActivitypubProfile, "Person": ActivitypubProfile,
"Service": ActivitypubProfile,
} }
OBJECTS = ( OBJECTS = (
"Application",
"Article", "Article",
"Group",
"Note", "Note",
"Organization",
"Page", "Page",
"Person", "Person",
"Service",
) )
UNDO_MAPPINGS = { UNDO_MAPPINGS = {