1
0
mirror of https://github.com/flarum/core.git synced 2025-08-17 13:54:18 +02:00

Fix notifications

This commit is contained in:
Toby Zerner
2015-07-17 14:48:20 +09:30
parent 6fa4d25a5b
commit e3bfa8e404
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));