1
0
mirror of https://github.com/flarum/core.git synced 2025-07-23 09:41:26 +02:00

Fix notifications

This commit is contained in:
Toby Zerner
2015-07-17 14:48:20 +09:30
parent 54ab536f96
commit 1cde3d7242
6 changed files with 97 additions and 7 deletions

View File

@@ -38,7 +38,7 @@ class NotificationType implements ExtenderInterface
$class = $this->class;
$type = $class::getType();
Notification::setSubjectModel($type, $class);
Notification::setSubjectModel($type, $class::getSubjectModel());
User::addPreference(User::getNotificationPreferenceKey($type, 'alert'), 'boolval', in_array('alert', $this->enabled));