1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 16:53:17 +00:00

Update DirectMessageController, include account entity in lookup endpoint

This commit is contained in:
Daniel Supernault 2022-09-06 23:27:37 -06:00
parent d1c05f080d
commit 9e223a6b83
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -704,12 +704,14 @@ class DirectMessageController extends Controller
->limit(8)
->get()
->map(function($r) {
$acct = AccountService::get($r->id);
return [
'local' => (bool) !$r->domain,
'id' => (string) $r->id,
'name' => $r->username,
'privacy' => true,
'avatar' => $r->avatarUrl()
'avatar' => $r->avatarUrl(),
'account' => $acct
];
});