oop
This commit is contained in:
parent
0d9ffa6aa2
commit
1a520f5792
1 changed files with 4 additions and 4 deletions
|
@ -12,13 +12,13 @@ proc formatTweetForMastoAPI*(tweet: Tweet, cfg: Config, prefs: Prefs): string =
|
|||
quoteUrl = &"{getUrlPrefix(cfg)}/i/status/{quote.id}"
|
||||
content &= &"\n\n<blockquote><b>↘ <a href=\"{quoteUrl}\">{quote.user.fullName} (@{quote.user.username})</a></b>\n{quoteContent}"
|
||||
|
||||
if quote.video.isSome() or tweet.gif.isSome():
|
||||
if quote.video.isSome() or quote.gif.isSome():
|
||||
content &= "\n📹"
|
||||
if tweet.gif.isSome():
|
||||
if quote.gif.isSome():
|
||||
content &= " (GIF)"
|
||||
elif tweet.photos.len > 0:
|
||||
elif quote.photos.len > 0:
|
||||
content &= "\n🖼️"
|
||||
if tweet.photos.len > 1:
|
||||
if quote.photos.len > 1:
|
||||
content &= &" ({tweet.photos.len})"
|
||||
|
||||
content &= "</blockquote>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue