Explorar o código

Use `?name=orig` for original quality images

Zed %!s(int64=7) %!d(string=hai) anos
pai
achega
dd8a7dcdff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/tweet.nim

+ 1 - 1
src/views/tweet.nim

@@ -39,7 +39,7 @@
     #for photo in photos:
     <div class="attachment image">
       ##TODO: why doesn't this work?
-      <a href=${getSigUrl(photo & ":large", "pic")} target="_blank" class="image-attachment">
+      <a href=${getSigUrl(photo & "?name=orig", "pic")} target="_blank" class="image-attachment">
         #let style = if photos.len > 1 or groups.len > 1: "display: flex;" else: ""
         #let istyle = if photos.len > 1 or groups.len > 1: "" else: "border-radius: 7px;"
         <div class="still-image" style="${style}">