mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-18 03:55:19 +00:00
Merge pull request #3224 from hughrun/move-fix
Pass correct user id in Move notification
This commit is contained in:
commit
61a6ee29d8
3 changed files with 4 additions and 3 deletions
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
{% block description %}
|
{% block description %}
|
||||||
{% if related_user_moved_to %}
|
{% if related_user_moved_to %}
|
||||||
{% id_to_username request.user.moved_to as username %}
|
{% id_to_username related_user_moved_to as username %}
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
{{ related_user }} has moved to <a href="{{ related_user_moved_to }}">{{ username }}</a>
|
{{ related_user }} has moved to <a href="{{ related_user_moved_to }}">{{ username }}</a>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
|
@ -126,6 +126,7 @@ def id_to_username(user_id):
|
||||||
value = f"{name}@{domain}"
|
value = f"{name}@{domain}"
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
return "a new user account"
|
||||||
|
|
||||||
|
|
||||||
@register.filter(name="get_file_size")
|
@register.filter(name="get_file_size")
|
||||||
|
|
Loading…
Reference in a new issue