diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-04-18 21:22:51 +0300 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-04-18 21:22:51 +0300 |
commit | 5f183fdf650811dab4cc4dee1c96b6b1bfa0587f (patch) | |
tree | bec93db4aed1dfbe0559247ba1fffcdddb524240 /api/src | |
parent | get single message && message rights enforcement (diff) | |
parent | Unified ghost instead of separate ghosts (diff) | |
download | server-5f183fdf650811dab4cc4dee1c96b6b1bfa0587f.tar.xz |
Merge branch 'master' of https://github.com/fosscord/fosscord-server
Diffstat (limited to 'api/src')
-rw-r--r-- | api/src/routes/channels/#channel_id/messages/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/channels/#channel_id/messages/index.ts b/api/src/routes/channels/#channel_id/messages/index.ts index 4cfaf247..af0ae32d 100644 --- a/api/src/routes/channels/#channel_id/messages/index.ts +++ b/api/src/routes/channels/#channel_id/messages/index.ts @@ -120,7 +120,7 @@ router.get("/", async (req: Request, res: Response) => { delete x.user_ids; }); // @ts-ignore - if (!x.author) x.author = { discriminator: "0000", username: "Deleted User", public_flags: "0", avatar: null }; + if (!x.author) x.author = { id: "4", discriminator: "0000", username: "Fosscord Ghost", public_flags: "0", avatar: null }; x.attachments?.forEach((y: any) => { // dynamically set attachment proxy_url in case the endpoint changed const uri = y.proxy_url.startsWith("http") ? y.proxy_url : `https://example.org${y.proxy_url}`; |