home » zplus/freepost.git
Author zPlus <zplus@peers.community> 2018-12-15 11:16:56
Committer zPlus <zplus@peers.community> 2018-12-15 11:16:56
Commit 145a539 (patch)
Tree 9f8dad7
Parent(s)

Fix #79: Links to Freepost disappeared from RSS feed?


commits diff: c92d523..145a539
2 files changed, 4 insertions, 3 deletionsdownload


Diffstat
-rwxr-xr-x freepost/__init__.py 1
-rw-r--r-- freepost/templates/rss.xml 6

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+0/-1 M   freepost/__init__.py
index 10d290f..fd88c53
old size: 25K - new size: 25K
@@ -821,7 +821,6 @@ def rss_default ():
821 821
822 822 return redirect (application.get_url ('rss', sorting='hot'))
823 823
824 - # TODO check if <description> is correctly displayed in RSS aggregators
825 824 @get ('/rss/<sorting>', name='rss')
826 825 def rss (sorting):
827 826 """

+4/-2 M   freepost/templates/rss.xml
index 04eb682..ffa3afa
old size: 1K - new size: 1K
@@ -14,8 +14,10 @@
14 14 <guid isPermaLink="false">{{ post.hashId }}</guid>
15 15 <title>{{ post.title }}</title>
16 16 <description>
17 - <p>by {{ post.username }} — {{ post.vote }} votes, <a href="{{ freepost_url }}">{{ post.commentsCount ~ ' comments' if post.commentsCount > 0 else 'discuss' }}</a></p>
18 - <p>{{ post.text }}</p>
17 + <![CDATA[
18 + <p>{{ post.text }}</p>
19 + <p>{{ post.vote }} votes, <a href="{{ freepost_url }}>{{ post.commentsCount ~ ' comments' if post.commentsCount > 0 else 'discuss' }}</a></p>
20 + ]]>
19 21 </description>
20 22 <link>{{ post.link if post.link and post.link|length > 0 else freepost_url }}</link>
21 23 <freepostLink>{{ freepost_url }}</freepostLink>