mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(api): ✨ Add new endpoint to get a user by its username
This commit is contained in:
parent
407eb5e205
commit
be881f18cd
9 changed files with 124 additions and 3 deletions
|
|
@ -636,6 +636,7 @@ export class User extends BaseInterface<typeof Users, UserWithRelations> {
|
|||
username: user.username,
|
||||
display_name: user.displayName,
|
||||
note: user.note,
|
||||
uri: this.getUri(),
|
||||
url:
|
||||
user.uri ||
|
||||
new URL(`/@${user.username}`, config.http.base_url).toString(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue