From ca1248351d38444cdbc66bd6a758190889a77d15 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 17 Jul 2022 09:45:00 +0200 Subject: [PATCH] Allow to undo pending follow requests --- app/main.py | 1 - app/templates/utils.html | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 74d2989..6362f70 100644 --- a/app/main.py +++ b/app/main.py @@ -75,7 +75,6 @@ _RESIZED_CACHE: MutableMapping[tuple[str, int], tuple[bytes, str, Any]] = LFUCac # TODO(ts): # # Next: -# - allow to undo follow requests # - indieauth tweaks # - API for posting notes # - allow to block servers diff --git a/app/templates/utils.html b/app/templates/utils.html index e821739..100eb36 100644 --- a/app/templates/utils.html +++ b/app/templates/utils.html @@ -197,6 +197,7 @@
  • {{ admin_profile_button(actor.ap_id) }}
  • {% elif metadata.is_follow_request_sent %}
  • follow request sent
  • +
  • {{ admin_undo_button(metadata.outbox_follow_ap_id, "undo follow") }}
  • {% else %}
  • {{ admin_follow_button(actor) }}
  • {% endif %}