Prevent Cloudflare from treating handles as emails

This commit is contained in:
Evan Pratten 2023-05-07 12:40:49 -04:00
parent b6d9f1dc95
commit acb11d1947
6 changed files with 18 additions and 1 deletions

View file

@ -12,7 +12,9 @@
<img src="{{ identity.local_icon_url.relative }}"> <img src="{{ identity.local_icon_url.relative }}">
<span class="handle"> <span class="handle">
{{ identity.html_name_or_handle }} {{ identity.html_name_or_handle }}
<!--email_off-->
<small>@{{ identity.handle }}</small> <small>@{{ identity.handle }}</small>
<!--/email_off-->
</span> </span>
<button class="right secondary" _="on click go to url {{ identity.urls.view }} then halt">View</button> <button class="right secondary" _="on click go to url {{ identity.urls.view }} then halt">View</button>
<button class="right secondary" _="on click go to url {{ identity.urls.settings }} then halt">Settings</button> <button class="right secondary" _="on click go to url {{ identity.urls.settings }} then halt">Settings</button>

View file

@ -35,7 +35,9 @@
<td class="name"> <td class="name">
<a href="{{ identity.urls.admin_edit }}" class="overlay"></a> <a href="{{ identity.urls.admin_edit }}" class="overlay"></a>
{{ identity.html_name_or_handle }} {{ identity.html_name_or_handle }}
<!--email_off-->
<small>@{{ identity.handle }}</small> <small>@{{ identity.handle }}</small>
<!--/email_off-->
</td> </td>
<td> <td>
{% if identity.restriction == 1 %} {% if identity.restriction == 1 %}

View file

@ -3,7 +3,12 @@
{% block subtitle %}{{ identity.name_or_handle }}{% endblock %} {% block subtitle %}{{ identity.name_or_handle }}{% endblock %}
{% block settings_content %} {% block settings_content %}
<h1>{{ identity.html_name_or_handle }} <small>{{ identity.handle }}</small></h1> <h1>
{{ identity.html_name_or_handle }}
<!--email_off-->
<small>@{{ identity.handle }}</small>
<!--/email_off-->
</h1>
<form action="." method="POST"> <form action="." method="POST">
{% csrf_token %} {% csrf_token %}
<fieldset> <fieldset>

View file

@ -43,6 +43,7 @@
</div> </div>
<h1>{{ identity.html_name_or_handle }}</h1> <h1>{{ identity.html_name_or_handle }}</h1>
<!--email_off-->
<small> <small>
@{{ identity.handle }} @{{ identity.handle }}
<a title="Copy handle" <a title="Copy handle"
@ -56,6 +57,7 @@
<i class="fa-solid fa-copy"></i> <i class="fa-solid fa-copy"></i>
</a> </a>
</small> </small>
<!--/email_off-->
{% if identity.summary %} {% if identity.summary %}
<div class="bio"> <div class="bio">
{{ identity.safe_summary }} {{ identity.safe_summary }}

View file

@ -3,7 +3,9 @@
{% block subtitle %}Token{% endblock %} {% block subtitle %}Token{% endblock %}
{% block settings_content %} {% block settings_content %}
<!--email_off-->
<h1>Deleting {{ identity.handle }}</h1> <h1>Deleting {{ identity.handle }}</h1>
<!--/email_off-->
<form action="." method="POST"> <form action="." method="POST">
{% csrf_token %} {% csrf_token %}
<fieldset> <fieldset>
@ -25,7 +27,9 @@
<div class="buttons"> <div class="buttons">
<a href="{% url "settings" handle=identity.handle %}" class="button secondary left">Cancel</a> <a href="{% url "settings" handle=identity.handle %}" class="button secondary left">Cancel</a>
<!--email_off-->
<button class="danger">Delete {{ identity.handle }}</button> <button class="danger">Delete {{ identity.handle }}</button>
<!--/email_off-->
</div> </div>
</form> </form>
{% endblock %} {% endblock %}

View file

@ -30,7 +30,9 @@
<td class="name"> <td class="name">
<a href="{{ other_identity.urls.view }}" class="overlay"></a> <a href="{{ other_identity.urls.view }}" class="overlay"></a>
{{ other_identity.html_name_or_handle }} {{ other_identity.html_name_or_handle }}
<!--email_off-->
<small>@{{ other_identity.handle }}</small> <small>@{{ other_identity.handle }}</small>
<!--/email_off-->
</td> </td>
<td class="stat"> <td class="stat">
{% if other_identity.id in outbound_ids %} {% if other_identity.id in outbound_ids %}