component AP gateway: handle XMPP attachments -> AP likes conversion:
convert `noticed` attachments coming from XMPP to suitable `Like` activities. Virtual node is created in cache when necessary, and virtual items published to virtual JID mapping AP accounts are cached too. rel 370
This commit is contained in:
parent
89f67ee50d
commit
d841a51a1a
1 changed files with 183 additions and 65 deletions
|
|
@ -29,6 +29,7 @@ TYPE_FOLLOWING = "following"
|
|||
TYPE_ITEM = "item"
|
||||
TYPE_TOMBSTONE = "Tombstone"
|
||||
TYPE_MENTION = "Mention"
|
||||
TYPE_LIKE = "Like"
|
||||
MEDIA_TYPE_AP = "application/activity+json"
|
||||
NS_AP = "https://www.w3.org/ns/activitystreams"
|
||||
NS_AP_PUBLIC = f"{NS_AP}#Public"
|
||||
|
|
|
|||
Loading…
Reference in a new issue