feat(api): Add new endpoint to get a user by its username

This commit is contained in:
Jesse Wierzbinski 2024-07-17 14:02:29 +02:00
parent 407eb5e205
commit be881f18cd
No known key found for this signature in database
9 changed files with 124 additions and 3 deletions

View file

@ -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(),