Explorar o código

Fix video placeholder thumbnail not showing

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

+ 1 - 1
src/views/tweet.nim

@@ -7,7 +7,7 @@ import ".."/[types, utils, formatters]
 
 proc getSmallPic(url: string): string =
   result = url
-  if "?" notin url:
+  if "?" notin url and not url.endsWith("placeholder.png"):
     result &= ":small"
   result = getPicUrl(result)