mirror of
https://github.com/flarum/core.git
synced 2025-07-22 17:21:27 +02:00
Fix notification preferences not being enabled by default
This commit is contained in:
@@ -33,7 +33,7 @@ class NotificationType implements ExtenderInterface
|
||||
|
||||
foreach ($notifier->getMethods() as $method => $sender) {
|
||||
if ($sender::compatibleWith($class)) {
|
||||
User::registerPreference(User::notificationPreferenceKey($class::getType(), $method), 'boolval', isset($this->enabled[$method]));
|
||||
User::registerPreference(User::notificationPreferenceKey($class::getType(), $method), 'boolval', in_array($method, $this->enabled));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user