From f097c85c764c23c62e09710cc87dc427119ca345 Mon Sep 17 00:00:00 2001 From: Faye Duxovni Date: Fri, 16 Jun 2023 17:19:24 -0400 Subject: [PATCH] Don't try to render unavailable tweets in RSS feeds Fixes #868. --- src/views/rss.nimf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/rss.nimf b/src/views/rss.nimf index 96f646636..56ec4fc97 100644 --- a/src/views/rss.nimf +++ b/src/views/rss.nimf @@ -62,6 +62,8 @@ Twitter feed for: ${desc}. Generated by ${cfg.hostname} #for t in tweets: # let retweet = if t.retweet.isSome: t.user.username else: "" # let tweet = if retweet.len > 0: t.retweet.get else: t +# if not tweet.available: continue +# end if # let link = getLink(tweet) # if link in links: continue # end if