Skip to content

Commit

Permalink
Don't show (nil) for stories w/o url in RSS feed
Browse files Browse the repository at this point in the history
  • Loading branch information
hjek committed Dec 16, 2017
1 parent 00fcd24 commit a5ae318
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/news.arc
Expand Up @@ -2264,14 +2264,12 @@ function vote(node) {
(each s stories
(tag item
(let comurl (+ site-url* (item-url s!id))
(tag title (pr (eschtml s!title) " (" (sitename s!url) ")"))
(tag title (pr (eschtml s!title)
(aif (sitename s!url) (+ " (" it ")") "")))
(tag link (pr (if (blank s!url) comurl (eschtml s!url))))
(tag comments (pr comurl))
(tag description
(cdata
(if (no s!text)
(link "Comments" comurl)
(pr s!text))))))))))
(cdata (link "Comments" comurl)))))))))

; RSS feed of user
(newsop follow (subject)
Expand Down

0 comments on commit a5ae318

Please sign in to comment.