mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update NotificationTransformer
This commit is contained in:
parent
13430a9a37
commit
705d4ef942
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class NotificationTransformer extends Fractal\TransformerAbstract
|
||||||
public function includeStatus(Notification $notification)
|
public function includeStatus(Notification $notification)
|
||||||
{
|
{
|
||||||
$item = $notification->item;
|
$item = $notification->item;
|
||||||
if(get_class($item) === 'App\Status') {
|
if(is_object($item) && get_class($item) === 'App\Status') {
|
||||||
return $this->item($item, new StatusTransformer());
|
return $this->item($item, new StatusTransformer());
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue