diff --git a/framework/core/src/Notification/Notification.php b/framework/core/src/Notification/Notification.php index a29058ab9..d8551842e 100644 --- a/framework/core/src/Notification/Notification.php +++ b/framework/core/src/Notification/Notification.php @@ -191,7 +191,7 @@ class Notification extends AbstractModel */ public function scopeWhereSubjectModel(Builder $query, string $class) { - $notificationTypes = array_filter(Notification::getSubjectModels(), function ($modelClass) use ($class) { + $notificationTypes = array_filter(self::getSubjectModels(), function ($modelClass) use ($class) { return $modelClass === $class or is_subclass_of($class, $modelClass); }); diff --git a/framework/core/src/Post/Post.php b/framework/core/src/Post/Post.php index 24aeac5f2..1ffff2e36 100644 --- a/framework/core/src/Post/Post.php +++ b/framework/core/src/Post/Post.php @@ -15,7 +15,6 @@ use Flarum\Database\AbstractModel; use Flarum\Database\ScopeVisibilityTrait; use Flarum\Discussion\Discussion; use Flarum\Event\GetModelIsPrivate; -use Flarum\Event\ScopeModelVisibility; use Flarum\Foundation\EventGeneratorTrait; use Flarum\Notification\Notification; use Flarum\Post\Event\Deleted;