From 30af407865a941c35eea0304e2c986b83c857ede Mon Sep 17 00:00:00 2001 From: Kopper Date: Fri, 6 Sep 2024 07:50:47 +0300 Subject: [PATCH] [backend/akko-client] Revert hacky workaround on /api/v1/pleroma/emoji I've decided to patch the frontend itself to accept this correctly. --- Iceshrimp.Backend/Controllers/Pleroma/EmojiController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Iceshrimp.Backend/Controllers/Pleroma/EmojiController.cs b/Iceshrimp.Backend/Controllers/Pleroma/EmojiController.cs index 7ddf10ae..6f711e57 100644 --- a/Iceshrimp.Backend/Controllers/Pleroma/EmojiController.cs +++ b/Iceshrimp.Backend/Controllers/Pleroma/EmojiController.cs @@ -24,8 +24,7 @@ public class EmojiController(DatabaseContext db) : ControllerBase var emoji = await db.Emojis.Where(p => p.Host == null) .Select(p => KeyValuePair.Create(p.Name, new PleromaEmojiEntity { - // TODO: akkoma-fe expects *relative paths* instead of absolute URLs... i genuinely think this is unfixable without forking the fe - ImageUrl = new Uri(p.PublicUrl).AbsolutePath, + ImageUrl = p.PublicUrl, Tags = new string[] { p.Category == null ? "" : p.Category } })) .ToArrayAsync();