summary refs log tree commit diff
diff options
context:
space:
mode:
authorBuildTools <59115290+BanTheNons@users.noreply.github.com>2021-08-05 21:00:56 +0300
committerBuildTools <59115290+BanTheNons@users.noreply.github.com>2021-08-05 21:00:56 +0300
commit1727c62317826436ad92cffafb4c8846ffa72770 (patch)
tree80b4bb4188e7fdaa65b11515ec551ac935e2f3fc
parentAdded the profile route (diff)
downloadserver-1727c62317826436ad92cffafb4c8846ffa72770.tar.xz
Added the bot param
-rw-r--r--src/routes/users/#id/profile.ts1
-rw-r--r--src/routes/users/@me/profile.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/routes/users/#id/profile.ts b/src/routes/users/#id/profile.ts

index 6fc8d5e4..516606f3 100644 --- a/src/routes/users/#id/profile.ts +++ b/src/routes/users/#id/profile.ts
@@ -17,6 +17,7 @@ router.get("/", async (req: Request, res: Response) => { public_flags: user.public_flags, avatar: user.avatar, bio: req.user_bot ? null : user.bio, + bot: user.bot, } }); }); diff --git a/src/routes/users/@me/profile.ts b/src/routes/users/@me/profile.ts
index 353607d4..366eb535 100644 --- a/src/routes/users/@me/profile.ts +++ b/src/routes/users/@me/profile.ts
@@ -17,6 +17,7 @@ router.get("/", async (req: Request, res: Response) => { public_flags: user.public_flags, avatar: user.avatar, bio: user.bio, + bot: user.bot, } }); });