make context/conversation a "valid" URI

This commit is contained in:
jesopo 2019-09-11 13:46:21 +01:00
parent 72e99a2ce0
commit 4639951897

View file

@ -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