Merge pull request #418 from writeas/consistent-feeds

Use HTMLContent field in RSS feed
pull/384/head
Matt Baer 4 years ago committed by GitHub
commit 4cf9500704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      feed.go

@ -1,5 +1,5 @@
/*
* Copyright © 2018-2019 A Bunch Tell LLC.
* Copyright © 2018-2020 A Bunch Tell LLC.
*
* This file is part of WriteFreely.
*
@ -104,7 +104,7 @@ func ViewFeed(app *App, w http.ResponseWriter, req *http.Request) error {
Title: title,
Link: &Link{Href: permalink},
Description: "<![CDATA[" + stripmd.Strip(p.Content) + "]]>",
Content: applyMarkdown([]byte(p.Content), "", app.cfg),
Content: string(p.HTMLContent),
Author: &Author{author, ""},
Created: p.Created,
Updated: p.Updated,

Loading…
Cancel
Save