diff 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
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_ap_gateway/constants.py	Wed Jul 20 17:49:51 2022 +0200
+++ b/sat/plugins/plugin_comp_ap_gateway/constants.py	Wed Jul 20 17:53:12 2022 +0200
@@ -29,6 +29,7 @@
 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"