mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-21 23:01:00 +00:00
Prevent Cloudflare from treating handles as emails
This commit is contained in:
parent
b6d9f1dc95
commit
acb11d1947
6 changed files with 18 additions and 1 deletions
|
@ -12,7 +12,9 @@
|
|||
<img src="{{ identity.local_icon_url.relative }}">
|
||||
<span class="handle">
|
||||
{{ identity.html_name_or_handle }}
|
||||
<!--email_off-->
|
||||
<small>@{{ identity.handle }}</small>
|
||||
<!--/email_off-->
|
||||
</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.settings }} then halt">Settings</button>
|
||||
|
|
|
@ -35,7 +35,9 @@
|
|||
<td class="name">
|
||||
<a href="{{ identity.urls.admin_edit }}" class="overlay"></a>
|
||||
{{ identity.html_name_or_handle }}
|
||||
<!--email_off-->
|
||||
<small>@{{ identity.handle }}</small>
|
||||
<!--/email_off-->
|
||||
</td>
|
||||
<td>
|
||||
{% if identity.restriction == 1 %}
|
||||
|
|
|
@ -3,7 +3,12 @@
|
|||
{% block subtitle %}{{ identity.name_or_handle }}{% endblock %}
|
||||
|
||||
{% 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">
|
||||
{% csrf_token %}
|
||||
<fieldset>
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
</div>
|
||||
|
||||
<h1>{{ identity.html_name_or_handle }}</h1>
|
||||
<!--email_off-->
|
||||
<small>
|
||||
@{{ identity.handle }}
|
||||
<a title="Copy handle"
|
||||
|
@ -56,6 +57,7 @@
|
|||
<i class="fa-solid fa-copy"></i>
|
||||
</a>
|
||||
</small>
|
||||
<!--/email_off-->
|
||||
{% if identity.summary %}
|
||||
<div class="bio">
|
||||
{{ identity.safe_summary }}
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
{% block subtitle %}Token{% endblock %}
|
||||
|
||||
{% block settings_content %}
|
||||
<!--email_off-->
|
||||
<h1>Deleting {{ identity.handle }}</h1>
|
||||
<!--/email_off-->
|
||||
<form action="." method="POST">
|
||||
{% csrf_token %}
|
||||
<fieldset>
|
||||
|
@ -25,7 +27,9 @@
|
|||
|
||||
<div class="buttons">
|
||||
<a href="{% url "settings" handle=identity.handle %}" class="button secondary left">Cancel</a>
|
||||
<!--email_off-->
|
||||
<button class="danger">Delete {{ identity.handle }}</button>
|
||||
<!--/email_off-->
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
@ -30,7 +30,9 @@
|
|||
<td class="name">
|
||||
<a href="{{ other_identity.urls.view }}" class="overlay"></a>
|
||||
{{ other_identity.html_name_or_handle }}
|
||||
<!--email_off-->
|
||||
<small>@{{ other_identity.handle }}</small>
|
||||
<!--/email_off-->
|
||||
</td>
|
||||
<td class="stat">
|
||||
{% if other_identity.id in outbound_ids %}
|
||||
|
|
Loading…
Reference in a new issue