mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
Fix notification preferences not being enabled by default
This commit is contained in:
parent
8095809c3f
commit
48a8beea52
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user