Fixed a bug with notification class types. Thanks Claud for the helping hand on this one. :)

This commit is contained in:
Storm Dragon
2025-07-29 19:42:48 -04:00
parent 15a2d8a592
commit e50087edf7
+15 -1
View File
@@ -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 {
&notifications_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) {