mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Add invite_request_username property to AdminAccount
This commit is contained in:
parent
179cafcc23
commit
4f87287d45
1 changed files with 2 additions and 1 deletions
|
|
@ -77,7 +77,8 @@ const adminAccountsController: AppController = async (c) => {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...account,
|
...account,
|
||||||
invite_request: request ? request.content : null,
|
invite_request: request?.content ?? null,
|
||||||
|
invite_request_username: request?.tags.find(([name]) => name === 'r')?.[1] ?? null,
|
||||||
approved: !!grant,
|
approved: !!grant,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue