mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Mastodon: Add admin.sign_up to supported notifications.
This commit is contained in:
parent
98aba2a4c4
commit
fda5250a52
@ -73,6 +73,8 @@ def compose_notification(notification, db, relative_times, show_screen_names, sa
|
||||
text = _("{username} has added to favorites: {status}").format(username=user, status=",".join(compose_post(notification.status, db, relative_times, show_screen_names, safe=safe)))
|
||||
elif notification.type == "follow":
|
||||
text = _("{username} has followed you.").format(username=user)
|
||||
elif notification.type == "admin.sign_up":
|
||||
text = _("{username} has joined the instance.").format(username=user)
|
||||
elif notification.type == "poll":
|
||||
text = _("A poll in which you have voted has expired: {status}").format(status=",".join(compose_post(notification.status, db, relative_times, show_screen_names, safe=safe)))
|
||||
elif notification.type == "follow_request":
|
||||
|
@ -170,6 +170,8 @@ def render_notification(notification, template, post_template, relative_times=Fa
|
||||
text = _("has updated a status: {status}").format(status=render_post(notification.status, post_template, relative_times, offset_hours))
|
||||
elif notification.type == "follow":
|
||||
text = _("has followed you.")
|
||||
elif notification.type == "admin.sign_up":
|
||||
text = _("has joined the instance.")
|
||||
elif notification.type == "poll":
|
||||
text = _("A poll in which you have voted has expired: {status}").format(status=render_post(notification.status, post_template, relative_times, offset_hours))
|
||||
elif notification.type == "follow_request":
|
||||
|
Loading…
Reference in New Issue
Block a user