comparison sat/plugins/plugin_comp_ap_gateway/constants.py @ 3865:59fbb66b2923

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
author Goffi <goffi@goffi.org>
date Wed, 20 Jul 2022 17:53:12 +0200
parents cc13efdd8360
children aa7197b67c26
comparison
equal deleted inserted replaced
3864:ac255a0fbd4c 3865:59fbb66b2923
27 TYPE_FOLLOWERS = "followers" 27 TYPE_FOLLOWERS = "followers"
28 TYPE_FOLLOWING = "following" 28 TYPE_FOLLOWING = "following"
29 TYPE_ITEM = "item" 29 TYPE_ITEM = "item"
30 TYPE_TOMBSTONE = "Tombstone" 30 TYPE_TOMBSTONE = "Tombstone"
31 TYPE_MENTION = "Mention" 31 TYPE_MENTION = "Mention"
32 TYPE_LIKE = "Like"
32 MEDIA_TYPE_AP = "application/activity+json" 33 MEDIA_TYPE_AP = "application/activity+json"
33 NS_AP = "https://www.w3.org/ns/activitystreams" 34 NS_AP = "https://www.w3.org/ns/activitystreams"
34 NS_AP_PUBLIC = f"{NS_AP}#Public" 35 NS_AP_PUBLIC = f"{NS_AP}#Public"
35 # 3 values can be used, see https://www.w3.org/TR/activitypub/#public-addressing 36 # 3 values can be used, see https://www.w3.org/TR/activitypub/#public-addressing
36 PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public") 37 PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public")