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) {