diff --git a/app/boxes.py b/app/boxes.py index 0ab42af..043bf55 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -288,6 +288,7 @@ async def _send_undo(db_session: AsyncSession, ap_object_id: str) -> None: raise ValueError("Should never happen") outbox_object_to_undo.undone_by_outbox_object_id = outbox_object.id + outbox_object_to_undo.is_deleted = True if outbox_object_to_undo.ap_type == "Follow": if not outbox_object_to_undo.activity_object_ap_id: diff --git a/app/templates/admin_outbox.html b/app/templates/admin_outbox.html index e54d2f1..d0ad58b 100644 --- a/app/templates/admin_outbox.html +++ b/app/templates/admin_outbox.html @@ -12,18 +12,16 @@ {% for outbox_object in outbox %} {% if outbox_object.ap_type == "Announce" %} -
You shared
+
You shared {{ outbox_object.ap_published_at | timeago }}
{{ utils.display_object(outbox_object.relates_to_anybox_object) }} {% elif outbox_object.ap_type == "Like" %} -
You liked
+
You liked {{ outbox_object.ap_published_at | timeago }}
{{ utils.display_object(outbox_object.relates_to_anybox_object) }} {% elif outbox_object.ap_type == "Follow" %} -
You followed
+
You followed {{ outbox_object.ap_published_at | timeago }}
{{ utils.display_actor(outbox_object.relates_to_actor, actors_metadata) }} {% elif outbox_object.ap_type in ["Article", "Note", "Video", "Question"] %} {{ utils.display_object(outbox_object) }} - {% else %} - Implement {{ outbox_object.ap_type }} {% endif %} {% endfor %} diff --git a/app/templates/utils.html b/app/templates/utils.html index ff52896..ef5ed3b 100644 --- a/app/templates/utils.html +++ b/app/templates/utils.html @@ -571,7 +571,7 @@ {% if object.visibility in [visibility_enum.PUBLIC, visibility_enum.UNLISTED] %}
  • {% if object.announced_via_outbox_object_ap_id %} - {{ admin_undo_button(object.liked_via_outbox_object_ap_id, "unshare") }} + {{ admin_undo_button(object.announced_via_outbox_object_ap_id, "unshare") }} {% else %} {{ admin_announce_button(object.ap_id, permalink_id=object.permalink_id) }} {% endif %}