Skip to content

Commit

Permalink
Update self link in RSS
Browse files Browse the repository at this point in the history
  • Loading branch information
koterpillar committed Mar 10, 2015
1 parent 38010f9 commit ef8b900
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Views/Feed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ feedDisplay lang articles = do
let lastUpdated = arAuthored $ head articles
let blankFeed = nullFeed home (TextString siteName) (atomDate lastUpdated)
entries <- mapM (articleEntry lang) articles
let selfLink = (nullLink home) { linkRel = Just $ Left "self" }
selfAddress <- linkTo $ Routes.Feed lang
let selfLink = (nullLink selfAddress) { linkRel = Just $ Left "self" }
let feed = blankFeed { feedEntries = entries
, feedLinks = [selfLink] }
return $ toResponse $ AtomFeed $ xmlFeed feed

0 comments on commit ef8b900

Please sign in to comment.