comparison sat/plugins/plugin_comp_ap_gateway/constants.py @ 3832:201a22bfbb74

component AP gateway: convert AP mention to XEP-0372 mentions: when a mentions are found in AP items (either with people specified directly as target, of with `mention` tags as in https://www.w3.org/TR/activitystreams-vocabulary/#microsyntaxes), they are converted to XEP-0372 `mention` references. This is only done for Pubsub items (i.e. not for private messages). rel 369
author Goffi <goffi@goffi.org>
date Sun, 10 Jul 2022 15:16:15 +0200
parents 6329ee6b6df4
children 381340b9a9ee
comparison
equal deleted inserted replaced
3831:604b6acaee22 3832:201a22bfbb74
26 TYPE_OUTBOX = "outbox" 26 TYPE_OUTBOX = "outbox"
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 MEDIA_TYPE_AP = "application/activity+json" 32 MEDIA_TYPE_AP = "application/activity+json"
32 NS_AP_PUBLIC = "https://www.w3.org/ns/activitystreams#Public" 33 NS_AP_PUBLIC = "https://www.w3.org/ns/activitystreams#Public"
33 # 3 values can be used, see https://www.w3.org/TR/activitypub/#public-addressing 34 # 3 values can be used, see https://www.w3.org/TR/activitypub/#public-addressing
34 PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public") 35 PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public")
35 # mapping from AP metadata to microblog data 36 # mapping from AP metadata to microblog data