Fix thread delete

This commit is contained in:
Thomas Sileo 2019-07-16 20:33:43 +02:00
parent 0b75ee7324
commit e3c2574f7b
2 changed files with 1 additions and 2 deletions

View file

@ -437,7 +437,7 @@ class MicroblogPubBackend(Backend):
obj_id = delete.get_object_id() obj_id = delete.get_object_id()
logger.debug("delete object={obj_id}") logger.debug("delete object={obj_id}")
try: try:
obj = delete.get_object() obj = ap.fetch_remote_activity(obj_id)
logger.info(f"inbox_delete handle_replies obj={obj!r}") logger.info(f"inbox_delete handle_replies obj={obj!r}")
in_reply_to = obj.get_in_reply_to() if obj.inReplyTo else None in_reply_to = obj.get_in_reply_to() if obj.inReplyTo else None
if obj.has_type(ap.CREATE_TYPES): if obj.has_type(ap.CREATE_TYPES):

View file

@ -8,7 +8,6 @@
<div id="notes"> <div id="notes">
{% for item in inbox_data %} {% for item in inbox_data %}
{{ item }}
{% if 'actor' in item.meta %} {% if 'actor' in item.meta %}
{% if item | has_type('Create') %} {% if item | has_type('Create') %}
{{ utils.display_note(item.activity.object, ui=True, meta=item.meta) }} {{ utils.display_note(item.activity.object, ui=True, meta=item.meta) }}