Revert "Maybe fixed poll notifications code. Only time will tell."
This reverts commit df39473519.
This commit is contained in:
+1
-3
@@ -1408,7 +1408,7 @@ $dmmarkread = 1 if (!defined $dmmarkread); # Default to enabled
|
||||
$notificationpause = 6 if (!defined $notificationpause); # NOT ||= ... zero is a VALID value!
|
||||
$notificationpause = 0 if ($anonymous);
|
||||
$notificationpause = 0 if ($pause eq '0');
|
||||
$notifies ||= 'boost,favourite,favorite,poll'; # Default notification types for sound alerts (both spellings)
|
||||
$notifies ||= 'boost,favourite,favorite'; # Default notification types for sound alerts (both spellings)
|
||||
$ansi = ($noansi) ? 0 :
|
||||
(($ansi || $ENV{'TERM'} eq 'ansi' || $ENV{'TERM'} eq 'xterm-color')
|
||||
? 1 : 0);
|
||||
@@ -6623,7 +6623,6 @@ sub notifications_tdisplay {
|
||||
$sound_class = 'boost' if ($type eq 'reblog');
|
||||
$sound_class = 'favourite' if ($type eq 'favourite' || $type eq 'favorite');
|
||||
$sound_class = 'follow' if ($type eq 'follow');
|
||||
$sound_class = 'poll' if ($type eq 'poll');
|
||||
|
||||
# Process as individual post with proper class
|
||||
&$handle($notification, $sound_class);
|
||||
@@ -7162,7 +7161,6 @@ sub notificationrefresh {
|
||||
$sound_class = 'boost' if ($type eq 'reblog');
|
||||
$sound_class = 'favourite' if ($type eq 'favourite' || $type eq 'favorite');
|
||||
$sound_class = 'follow' if ($type eq 'follow');
|
||||
$sound_class = 'poll' if ($type eq 'poll');
|
||||
|
||||
# Always debug notification types to help troubleshoot
|
||||
print $stdout "-- DEBUG: Received notification type='$type', mapped to sound_class='$sound_class'\n" if ($verbose || $type eq 'favourite');
|
||||
|
||||
Reference in New Issue
Block a user