From e50087edf7722e6f8a527376de7ba844d46ac591 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 29 Jul 2025 19:42:48 -0400 Subject: [PATCH] Fixed a bug with notification class types. Thanks Claud for the helping hand on this one. :) --- ttyverse.pl | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ttyverse.pl b/ttyverse.pl index b00811a..08a08e5 100755 --- a/ttyverse.pl +++ b/ttyverse.pl @@ -7036,7 +7036,9 @@ sub notificationrefresh { print $stdout "-- DEBUG: Displaying notification without sound (display_only mode)\n" if ($verbose); &$handle($notif, ''); # Empty class = no sound } else { - ¬ifications_tdisplay([ $notif ]); + # Call handle directly with the proper sound class + print $stdout "-- DEBUG: Calling handle with sound class '$sound_class'\n" if ($verbose); + &$handle($notif, $sound_class); } $printed++; } @@ -8049,6 +8051,18 @@ sub defaultposttype { my $sn = shift; my $post = shift; + # Check for boost/reblog posts first + if (exists($ref->{'boost_attribution'}) && $ref->{'boost_attribution'}) { + print $stdout "-- DEBUG: defaultposttype detected boost post\n" if ($verbose); + return 'boost'; + } + + # Check for favourited posts + if (exists($ref->{'favorited'}) && $ref->{'favorited'}) { + print $stdout "-- DEBUG: defaultposttype detected favourite post\n" if ($verbose); + return 'favourite'; + } + # br3nda's and smb's modified colour patch unless ($anonymous) { if (lc($sn) eq $whoami) {