forked from mirror/pixelfed
Update DiscoverController, fix favourited state on memories
This commit is contained in:
parent
1abcb7870a
commit
b91747b4bb
|
@ -214,7 +214,9 @@ class DiscoverController extends Controller
|
||||||
->limit(20)
|
->limit(20)
|
||||||
->pluck('status_id')
|
->pluck('status_id')
|
||||||
->map(function($id) {
|
->map(function($id) {
|
||||||
return StatusService::get($id, false);
|
$status = StatusService::get($id, false);
|
||||||
|
$status['favourited'] = true;
|
||||||
|
return $status;
|
||||||
})
|
})
|
||||||
->filter(function($post) {
|
->filter(function($post) {
|
||||||
return $post && isset($post['account']);
|
return $post && isset($post['account']);
|
||||||
|
|
Loading…
Reference in New Issue