aboutsummaryrefslogtreecommitdiff
path: root/modules/fediverse_server.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-11 13:46:21 +0100
committerGravatar jesopo2019-09-11 13:46:21 +0100
commit4639951897877ff0e7ece314c155ce025d7146c4 (patch)
tree6f960c210abe0eff2013dd83b2f78cb0a13a54cc /modules/fediverse_server.py
parentinbox should have https:// on it (diff)
signature
make context/conversation a "valid" URI
Diffstat (limited to 'modules/fediverse_server.py')
-rw-r--r--modules/fediverse_server.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/fediverse_server.py b/modules/fediverse_server.py
index 28c66dfe..35e43024 100644
--- a/modules/fediverse_server.py
+++ b/modules/fediverse_server.py
@@ -138,10 +138,11 @@ class Module(ModuleManager.BaseModule):
def _prepare_activity(self, url_for, self_id, activity_id, content,
timestamp):
activity_url = self._ap_activity_url(url_for, activity_id)
+ context = "data:%s" % activity_id
return activity_url, {
"attributedTo": self_id,
"content": content,
- "conversation": activity_id, "context": activity_id,
+ "conversation": context, "context": context,
"id": activity_url, "url": activity_url,
"published": timestamp,
"summary": "", # content warning here