mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update NotificationService
This commit is contained in:
parent
95bcb50329
commit
d09b00a70f
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class NotificationService {
|
|||
public static function getNotification($id)
|
||||
{
|
||||
return Cache::remember('service:notification:'.$id, now()->addDays(7), function() use($id) {
|
||||
$n = Notification::findOrFail($id);
|
||||
$n = Notification::with('item')->findOrFail($id);
|
||||
$fractal = new Fractal\Manager();
|
||||
$fractal->setSerializer(new ArraySerializer());
|
||||
$resource = new Fractal\Resource\Item($n, new NotificationTransformer());
|
||||
|
|
Loading…
Reference in a new issue