From 44b6f9fcf468b734e391ca04fe8f878fea3480fd Mon Sep 17 00:00:00 2001 From: Sandra Snan Date: Sun, 24 Dec 2023 12:14:48 +0100 Subject: [PATCH] Drop Pleroma Emoji Reactions I made this a list so you can add other types to drop easily but if this is premature generalization we could make it a scalar instead. --- toot/output.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/toot/output.py b/toot/output.py index 266f467..bc85c0d 100644 --- a/toot/output.py +++ b/toot/output.py @@ -274,8 +274,9 @@ def print_notification(notification: Notification): def print_notifications(notifications: List[Notification]): for notification in notifications: - print_divider() - print_notification(notification) + if notification.type not in ['pleroma:emoji_reaction']: + print_divider() + print_notification(notification) print_divider()