handle username errors in remote follow form

This commit is contained in:
Hugh Rundle
2021-11-29 07:11:57 +11:00
parent 6abf5d6910
commit feaf0d5e52
2 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,11 @@
<p>{% blocktrans %}Something went wrong trying to follow <strong>{{ account }}</strong>{% endblocktrans %}</p>
<p>{% trans 'Check you have the correct username before trying again.' %}</p>
</div>
{% elif error == 'remote_subscribe' %}
<div class="notification is-warning has-text-centered">
<p>{% blocktrans %}Something went wrong trying to follow from <strong>{{ account }}</strong>{% endblocktrans %}</p>
<p>{% trans 'Check you have the correct username before trying again.' %}</p>
</div>
{% elif error == 'is_blocked' %}
<div class="notification is-danger has-text-centered">
<p>{% blocktrans %}You have blocked <strong>{{ account }}</strong>{% endblocktrans %}</p>