kopia lustrzana https://github.com/pixelfed/pixelfed
Update DirectMessageController, include account entity in lookup endpoint
rodzic
d1c05f080d
commit
9e223a6b83
|
@ -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
|
||||
];
|
||||
});
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue