Fixed a bug with notification class types. Thanks Claud for the helping hand on this one. :)
This commit is contained in:
+15
-1
@@ -7036,7 +7036,9 @@ sub notificationrefresh {
|
|||||||
print $stdout "-- DEBUG: Displaying notification without sound (display_only mode)\n" if ($verbose);
|
print $stdout "-- DEBUG: Displaying notification without sound (display_only mode)\n" if ($verbose);
|
||||||
&$handle($notif, ''); # Empty class = no sound
|
&$handle($notif, ''); # Empty class = no sound
|
||||||
} else {
|
} 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++;
|
$printed++;
|
||||||
}
|
}
|
||||||
@@ -8049,6 +8051,18 @@ sub defaultposttype {
|
|||||||
my $sn = shift;
|
my $sn = shift;
|
||||||
my $post = 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
|
# br3nda's and smb's modified colour patch
|
||||||
unless ($anonymous) {
|
unless ($anonymous) {
|
||||||
if (lc($sn) eq $whoami) {
|
if (lc($sn) eq $whoami) {
|
||||||
|
|||||||
Reference in New Issue
Block a user