Ver Fonte

Fix video placeholder thumbnail not showing

Zed há 4 anos atrás
pai
commit
47ed1a3ae8
1 ficheiros alterados com 1 adições e 1 exclusões
  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)