mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 20:11:14 +00:00
Link to local versions of statuses in notifications
This commit is contained in:
parent
885bb023a3
commit
d42ebbaf4a
2 changed files with 3 additions and 3 deletions
|
@ -26,10 +26,10 @@
|
|||
|
||||
{% elif notification.notification_type == 'MENTION' %}
|
||||
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' %}
|
||||
<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
|
||||
<a href="{{ notification.related_status.reply_parent.remote_id}}">status</a>
|
||||
{% elif notification.notification_type == 'FOLLOW' %}
|
||||
|
|
|
@ -20,7 +20,7 @@ status_types = [
|
|||
'generatednote'
|
||||
]
|
||||
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+)'
|
||||
|
||||
|
|
Loading…
Reference in a new issue