#? stdtmpl(subsChar = '$', metaChad = '#') #import strutils, xmltree, strformat #import ../types, ../utils, ../formatters #const hostname {.strdefine.} = "nitter.net" # #proc renderRssTweet(tweet: Tweet; prefs: Prefs): string = #let text = linkifyText(tweet.text, prefs, rss=true) #if tweet.quote.isSome and get(tweet.quote).available: #let quoteLink = hostname & getLink(get(tweet.quote))
${text}
${quoteLink}
${text}
#end if #if tweet.photos.len > 0: #elif tweet.video.isSome: #elif tweet.gif.isSome: #let thumb = &"https://{hostname}{getPicUrl(get(tweet.gif).thumb)}" #let url = &"https://{hostname}{getGifUrl(get(tweet.gif).url)}" #end if #end proc # #proc getTitle(tweet: Tweet; prefs: Prefs): string = #if tweet.pinned: result = "Pinned: " #elif tweet.retweet.isSome: result = "RT: " #end if #result &= xmltree.escape(replaceUrl(tweet.text, prefs)) #if result.len > 0: return #end if #if tweet.photos.len > 0: # result &= "Image" #elif tweet.video.isSome: # result &= "Video" #elif tweet.gif.isSome: # result &= "Gif" #end if #end proc # #proc renderTimelineRss*(tweets: seq[Tweet]; profile: Profile): string = #let prefs = Prefs(replaceTwitter: hostname) #result = ""