- Affected version
- 2.2.12
Activity summary emails are some kind of newsletter and thus should be disabled when the users sends an unsubscribe email.
This is currently not the case, only admin initiated newsletters / emails are deactivated:
\XF\EmailUnsubscribe\Processor:applyUserUnsubscribeAction()
This is currently not the case, only admin initiated newsletters / emails are deactivated:
\XF\EmailUnsubscribe\Processor:applyUserUnsubscribeAction()
PHP:
public function applyUserUnsubscribeAction(User $user)
{
$user->Option->receive_admin_email = false;
$user->Option->save(false);
}