kopia lustrzana https://gitlab.com/jaywink/federation
Support a larger set of ActivityPub Actor types
rodzic
da2d436fdf
commit
1070831b2d
|
@ -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 = {
|
||||||
|
|
Ładowanie…
Reference in New Issue