PDA

View Full Version : [fixed] Online.php doesn't catch the "action=usub" Event



Mystics
Sat 8th Jun '02, 6:20pm
If you remove the subscription of a forum or a thread in your UserCP, the link uses action=removesubscription, but the unsubscribe link in an eMail Notification uses action=usub, which is not caught in online.php.

I think this:
} else if ($token1 == 'action=removesubscription') {
if ($token2 == 'type=allthread') {
$userinfo[activity] = 'remsubthread';
} else {
$userinfo[activity] = 'remsubforum';
} should be replaced with this:
} else if ($token1 == 'action=removesubscription' || $token1 == 'action=usub') {
if (strstr($token2,'threadid') || $token2 == 'type=allthread') {
$userinfo[activity] = 'remsubthread';
} else {
$userinfo[activity] = 'remsubforum';
}
Mystics

Scott MacVicar
Sat 8th Jun '02, 7:15pm
Confirmed in 2.2.6, moving to bugs.