Browse Source

Fix tombstones

pull/38/head
Dashie der otter 3 weeks ago
parent
commit
6daf95963a
Signed by: Dashie <dashie@sigpipe.me> GPG Key ID: C2D57B325840B755
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      controllers/api/v1/activitypub.py

+ 4
- 1
controllers/api/v1/activitypub.py View File

@@ -225,7 +225,10 @@ def outbox_item_activity(item_id):
225 225
 
226 226
     if item.meta_deleted:
227 227
         obj = activitypub.parse_activity(item.payload)
228
-        resp = jsonify(**obj.get_object().get_tombstone().to_dict())
228
+        # FIXME not sure about that /activity
229
+        tomb = obj.get_tombstone().to_dict()
230
+        tomb["id"] = tomb["id"] + "/activity"
231
+        resp = jsonify(tomb)
229 232
         resp.status_code = 410
230 233
         return resp
231 234
 

Loading…
Cancel
Save