From e3c2574f7bb9492ad700c30c790b5f685d3fce2b Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Tue, 16 Jul 2019 20:33:43 +0200 Subject: [PATCH] Fix thread delete --- activitypub.py | 2 +- templates/stream.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/activitypub.py b/activitypub.py index f00a411..854b5e0 100644 --- a/activitypub.py +++ b/activitypub.py @@ -437,7 +437,7 @@ class MicroblogPubBackend(Backend): obj_id = delete.get_object_id() logger.debug("delete object={obj_id}") try: - obj = delete.get_object() + obj = ap.fetch_remote_activity(obj_id) logger.info(f"inbox_delete handle_replies obj={obj!r}") in_reply_to = obj.get_in_reply_to() if obj.inReplyTo else None if obj.has_type(ap.CREATE_TYPES): diff --git a/templates/stream.html b/templates/stream.html index 3d561ca..b9d5768 100644 --- a/templates/stream.html +++ b/templates/stream.html @@ -8,7 +8,6 @@
{% for item in inbox_data %} - {{ item }} {% if 'actor' in item.meta %} {% if item | has_type('Create') %} {{ utils.display_note(item.activity.object, ui=True, meta=item.meta) }}