mirror of
https://github.com/flarum/core.git
synced 2025-07-23 01:31:40 +02:00
Don't display notifications with deleted subjects
This commit is contained in:
@@ -115,7 +115,8 @@ abstract class Serializer extends SerializerAbstract
|
||||
} elseif ($many) {
|
||||
$relationIds = $relation.'_ids';
|
||||
$data = isset($model->$relationIds) ? $model->$relationIds : $model->$relation()->lists('id');
|
||||
} else {
|
||||
}
|
||||
if (! $many && empty($data)) {
|
||||
$relationId = $relation.'_id';
|
||||
$data = $model->$relationId;
|
||||
}
|
||||
|
Reference in New Issue
Block a user