diff --git a/src/views/mastoapi.nim b/src/views/mastoapi.nim index fa1bbfa..4f97013 100644 --- a/src/views/mastoapi.nim +++ b/src/views/mastoapi.nim @@ -12,13 +12,13 @@ proc formatTweetForMastoAPI*(tweet: Tweet, cfg: Config, prefs: Prefs): string = quoteUrl = &"{getUrlPrefix(cfg)}/i/status/{quote.id}" content &= &"\n\n
{quote.user.fullName} (@{quote.user.username})\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 &= "
"