From acb11d1947e18dcd5eba1b89e21beb559693457d Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 7 May 2023 12:40:49 -0400 Subject: [PATCH] Prevent Cloudflare from treating handles as emails --- templates/activities/home.html | 2 ++ templates/admin/identities.html | 2 ++ templates/admin/identity_edit.html | 7 ++++++- templates/identity/view.html | 2 ++ templates/settings/delete.html | 4 ++++ templates/settings/follows.html | 2 ++ 6 files changed, 18 insertions(+), 1 deletion(-) diff --git a/templates/activities/home.html b/templates/activities/home.html index 3194798..270c3f4 100644 --- a/templates/activities/home.html +++ b/templates/activities/home.html @@ -12,7 +12,9 @@ {{ identity.html_name_or_handle }} + @{{ identity.handle }} + diff --git a/templates/admin/identities.html b/templates/admin/identities.html index 62c87e3..090055b 100644 --- a/templates/admin/identities.html +++ b/templates/admin/identities.html @@ -35,7 +35,9 @@ {{ identity.html_name_or_handle }} + @{{ identity.handle }} + {% if identity.restriction == 1 %} diff --git a/templates/admin/identity_edit.html b/templates/admin/identity_edit.html index 2f9fa28..ff41338 100644 --- a/templates/admin/identity_edit.html +++ b/templates/admin/identity_edit.html @@ -3,7 +3,12 @@ {% block subtitle %}{{ identity.name_or_handle }}{% endblock %} {% block settings_content %} -

{{ identity.html_name_or_handle }} {{ identity.handle }}

+

+ {{ identity.html_name_or_handle }} + + @{{ identity.handle }} + +

{% csrf_token %}
diff --git a/templates/identity/view.html b/templates/identity/view.html index 0c59723..2c2b5b2 100644 --- a/templates/identity/view.html +++ b/templates/identity/view.html @@ -43,6 +43,7 @@

{{ identity.html_name_or_handle }}

+ @{{ identity.handle }} + {% if identity.summary %}
{{ identity.safe_summary }} diff --git a/templates/settings/delete.html b/templates/settings/delete.html index cdd58c5..aa51ad8 100644 --- a/templates/settings/delete.html +++ b/templates/settings/delete.html @@ -3,7 +3,9 @@ {% block subtitle %}Token{% endblock %} {% block settings_content %} +

Deleting {{ identity.handle }}

+ {% csrf_token %}
@@ -25,7 +27,9 @@
Cancel + +
{% endblock %} diff --git a/templates/settings/follows.html b/templates/settings/follows.html index 21998dd..184c5d7 100644 --- a/templates/settings/follows.html +++ b/templates/settings/follows.html @@ -30,7 +30,9 @@ {{ other_identity.html_name_or_handle }} + @{{ other_identity.handle }} + {% if other_identity.id in outbound_ids %}