Link to local versions of statuses in notifications

This commit is contained in:
Mouse Reeve 2020-12-30 16:10:32 -08:00
parent 885bb023a3
commit d42ebbaf4a
2 changed files with 3 additions and 3 deletions

View file

@ -26,10 +26,10 @@
{% elif notification.notification_type == 'MENTION' %} {% elif notification.notification_type == 'MENTION' %}
mentioned you in a mentioned you in a
<a href="{{ notification.related_status.remote_id}}">status</a> <a href="/user/{{ notification.related_status.user }}/status/{{ notification.related_status.id}}">status</a>
{% elif notification.notification_type == 'REPLY' %} {% elif notification.notification_type == 'REPLY' %}
<a href="{{ notification.related_status.remote_id}}">replied</a> <a href="/user/{{ notification.related_status.user }}/status/{{ notification.related_status.id}}">replied</a>
to your to your
<a href="{{ notification.related_status.reply_parent.remote_id}}">status</a> <a href="{{ notification.related_status.reply_parent.remote_id}}">status</a>
{% elif notification.notification_type == 'FOLLOW' %} {% elif notification.notification_type == 'FOLLOW' %}

View file

@ -20,7 +20,7 @@ status_types = [
'generatednote' 'generatednote'
] ]
status_path = r'%s/(%s)/(?P<status_id>\d+)' % \ status_path = r'%s/(%s)/(?P<status_id>\d+)' % \
(local_user_path, '|'.join(status_types)) (user_path, '|'.join(status_types))
book_path = r'^book/(?P<book_id>\d+)' book_path = r'^book/(?P<book_id>\d+)'