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 deletions
—
download
Diffstat
Diff options
+0/-1
M freepost/__init__.py
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
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>
|