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 = {
"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 = {