mirror of
https://github.com/flarum/core.git
synced 2025-07-23 09:41:26 +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) {
|
foreach ($notifier->getMethods() as $method => $sender) {
|
||||||
if ($sender::compatibleWith($class)) {
|
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