Browse Source

Fix tombstones

pull/38/head
Dashie der otter 2 months 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):

if item.meta_deleted:
obj = activitypub.parse_activity(item.payload)
resp = jsonify(**obj.get_object().get_tombstone().to_dict())
# FIXME not sure about that /activity
tomb = obj.get_tombstone().to_dict()
tomb["id"] = tomb["id"] + "/activity"
resp = jsonify(tomb)
resp.status_code = 410
return resp


Loading…
Cancel
Save