Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
fixed dummy user id
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Dubovikov <[email protected]>
  • Loading branch information
adnull committed Sep 30, 2024
1 parent 6c8158b commit 625bc3d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mediaapi/routing/url_preview.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 625bc3d

Please sign in to comment.