From 1c5479511bccc3b46c71055f49c70e3074acb9d5 Mon Sep 17 00:00:00 2001 From: orangix Date: Tue, 15 Aug 2023 20:07:44 +0200 Subject: [PATCH] proxy comment images oops --- api/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/user.go b/api/user.go index 4ffd4b3..77d5ef1 100644 --- a/api/user.go +++ b/api/user.go @@ -165,7 +165,7 @@ func parseSubmission(value gjson.Result) Submission { case c.Type != gjson.Null: cover = Media{ Id: c.Get("id").String(), - Url: c.Get("url").String(), + Url: strings.ReplaceAll(c.Get("url").String(), "https://i.imgur.com", ""), } default: cover = Media{