Skip to content

Commit

Permalink
always request webp from picfit
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Oct 16, 2024
1 parent f3f3b5a commit a26e4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/memo/src/main/Picfit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ final class PicfitUrl(config: PicfitConfig)(using Executor) extends lila.core.mi
height: Int
) =
// parameters must be given in alphabetical order for the signature to work (!)
val queryString = s"h=$height&op=$operation&path=$id&w=$width"
val queryString = s"fmt=webp&h=$height&op=$operation&path=$id&w=$width"
s"${config.endpointGet}/display?${signQueryString(queryString)}"

private object signQueryString:
Expand Down

0 comments on commit a26e4d3

Please sign in to comment.