1
0
Fork 0
forked from mirror/pixelfed

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

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']);