Revert "Maybe fixed poll notifications code. Only time will tell."

This reverts commit df39473519.
This commit is contained in:
Storm Dragon
2025-08-03 12:02:18 -04:00
parent df39473519
commit 925cc7545b
+1 -3
View File
@@ -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');