From cc50ebf47b0cb4b19b68436037eff20d96874b3e Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sun, 5 Feb 2023 12:35:27 +1100 Subject: Fix being unable to unset nicknames Remove unwanted guild profile handler in cdn Fix rights check for bio/avatars of your own user --- src/cdn/routes/guilds.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/cdn/routes/guilds.ts (limited to 'src/cdn') diff --git a/src/cdn/routes/guilds.ts b/src/cdn/routes/guilds.ts deleted file mode 100644 index e36fd363..00000000 --- a/src/cdn/routes/guilds.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - Fosscord: A FOSS re-implementation and extension of the Discord.com backend. - Copyright (C) 2023 Fosscord and Fosscord Contributors - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -import { Router } from "express"; -import { getAvatar } from "./avatars"; - -const router = Router(); - -// TODO: handle guild profiles -router.get("/:guild_id/users/:user_id/avatars/:hash", getAvatar); -router.get("/:guild_id/users/:user_id/banners/:hash", getAvatar); - -export default router; -- cgit 1.4.1