mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-01 18:53:16 +00:00
Update DirectMessageController, include account entity in lookup endpoint
This commit is contained in:
parent
d1c05f080d
commit
9e223a6b83
1 changed files with 3 additions and 1 deletions
|
@ -704,12 +704,14 @@ class DirectMessageController extends Controller
|
||||||
->limit(8)
|
->limit(8)
|
||||||
->get()
|
->get()
|
||||||
->map(function($r) {
|
->map(function($r) {
|
||||||
|
$acct = AccountService::get($r->id);
|
||||||
return [
|
return [
|
||||||
'local' => (bool) !$r->domain,
|
'local' => (bool) !$r->domain,
|
||||||
'id' => (string) $r->id,
|
'id' => (string) $r->id,
|
||||||
'name' => $r->username,
|
'name' => $r->username,
|
||||||
'privacy' => true,
|
'privacy' => true,
|
||||||
'avatar' => $r->avatarUrl()
|
'avatar' => $r->avatarUrl(),
|
||||||
|
'account' => $acct
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue