mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-12-15 03:55:00 +01:00
Mastodon: Added status updates for subscribed entities to notifications
This commit is contained in:
@@ -63,7 +63,9 @@ def compose_notification(notification, db, relative_times, show_screen_names, sa
|
||||
else:
|
||||
ts = original_date.shift(hours=db["utc_offset"]).format(_("dddd, MMMM D, YYYY H:m"), locale=languageHandler.curLang[:2])
|
||||
text = "Unknown: %r" % (notification)
|
||||
if notification.type == "mention":
|
||||
if notification.type == "status":
|
||||
text = _("{username} has posted: {status}").format(username=user, status=",".join(compose_post(notification.status, db, relative_times, show_screen_names, safe=safe)))
|
||||
elif notification.type == "mention":
|
||||
text = _("{username} has mentionned you: {status}").format(username=user, status=",".join(compose_post(notification.status, db, relative_times, show_screen_names, safe=safe)))
|
||||
elif notification.type == "reblog":
|
||||
text = _("{username} has boosted: {status}").format(username=user, status=",".join(compose_post(notification.status, db, relative_times, show_screen_names, safe=safe)))
|
||||
|
||||
Reference in New Issue
Block a user