1
0
Fork 0

Update DiscoverController, fix favourited state on memories

This commit is contained in:
Daniel Supernault 2022-03-12 23:24:33 -07:00
parent 1abcb7870a
commit b91747b4bb
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 3 additions and 1 deletions

View File

@ -214,7 +214,9 @@ class DiscoverController extends Controller
->limit(20)
->pluck('status_id')
->map(function($id) {
return StatusService::get($id, false);
$status = StatusService::get($id, false);
$status['favourited'] = true;
return $status;
})
->filter(function($post) {
return $post && isset($post['account']);