forked from mirror/pixelfed
Update DiscoverController, fix favourited state on memories
This commit is contained in:
parent
1abcb7870a
commit
b91747b4bb
1 changed files with 3 additions and 1 deletions
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue