Mastodon: Add admin.sign_up to supported notifications.

This commit is contained in:
Manuel Cortez 2023-02-06 02:38:18 -06:00
parent 98aba2a4c4
commit fda5250a52
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790
2 changed files with 4 additions and 0 deletions

View File

@ -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":

View File

@ -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":