Skip to content

Commit

Permalink
Fix video placeholder thumbnail not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Jan 3, 2022
1 parent bb981df commit 47ed1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/tweet.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 47ed1a3

Please sign in to comment.