Parcourir la source

Fix video placeholder thumbnail not showing

Zed il y a 4 ans
Parent
commit
47ed1a3ae8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)