From 625bc3d02db41f0998ce0822004514306c16f7c2 Mon Sep 17 00:00:00 2001 From: ad Date: Mon, 30 Sep 2024 13:03:26 +0200 Subject: [PATCH] fixed dummy user id Signed-off-by: Aleksandr Dubovikov --- mediaapi/routing/url_preview.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mediaapi/routing/url_preview.go b/mediaapi/routing/url_preview.go index cd488a804f..fc35b723cc 100644 --- a/mediaapi/routing/url_preview.go +++ b/mediaapi/routing/url_preview.go @@ -303,10 +303,7 @@ func downloadAndStoreImage( var width, height int - userid := types.MatrixUserID("user") - if dev != nil { - userid = types.MatrixUserID(dev.UserID) - } + userid := types.MatrixUserID(dev.UserID) reqReader := req.Body.(io.Reader) if cfg.MaxFileSizeBytes > 0 {