Fix reblog account to show account who reblogged it, not who posted it

pull/7427/head
Daniel Supernault 1 day ago
parent 1759e4493d
commit 25d9753d87
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -2796,8 +2796,7 @@ class ApiV1Controller extends Controller
return false;
}
// Not $status['account'] = $account: $account is resolved from
// the row, StatusService picks the right one per client
$status['account'] = $account;
if ($pid) {
$status['favourited'] = (bool) LikeService::liked($pid, $s['id']);
@ -2875,8 +2874,7 @@ class ApiV1Controller extends Controller
return false;
}
// Not $status['account'] = $account: $account is resolved from
// the row, StatusService picks the right one per client
$status['account'] = $account;
if ($pid) {
$status['favourited'] = (bool) LikeService::liked($pid, $s['id']);

Loading…
Cancel
Save