mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update ApiV1Controller, include self likes in favourited_by endpoint
This commit is contained in:
parent
46d88385d9
commit
58b331d22e
1 changed files with 2 additions and 2 deletions
|
@ -2449,12 +2449,12 @@ class ApiV1Controller extends Controller
|
|||
->limit($limit)
|
||||
->get()
|
||||
->map(function($like) {
|
||||
$account = AccountService::getMastodon($like->profile_id);
|
||||
$account = AccountService::getMastodon($like->profile_id, true);
|
||||
$account['follows'] = isset($like->created_at);
|
||||
return $account;
|
||||
})
|
||||
->filter(function($account) use($user) {
|
||||
return $account && isset($account['id']) && $account['id'] != $user->profile_id;
|
||||
return $account && isset($account['id']);
|
||||
})
|
||||
->values();
|
||||
|
||||
|
|
Loading…
Reference in a new issue