Author
|
zPlus <zplus@peers.community>
2018-07-28 08:50:36
|
Committer
|
zPlus <zplus@peers.community>
2018-07-28 08:50:36
|
Commit
|
1c1ff93
(patch)
|
Tree
|
ebef67e
|
Parent(s)
|
|
Fix database calls in RSS controller.
modified: freepost/__init__.py
commits diff:
e46aad0..1c1ff93
1 file changed,
2 insertions,
2 deletions
—
download
Diffstat
Diff options
+2/-2
M freepost/__init__.py
835
|
835
|
|
base_url = request.urlparts.scheme + '://' + request.urlparts.netloc
|
836
|
836
|
|
|
837
|
837
|
|
if sorting == 'new':
|
838
|
|
- |
posts = database.get_new_posts ()
|
|
838
|
+ |
posts = database.get_posts (sort='new')
|
839
|
839
|
|
|
840
|
840
|
|
if sorting == 'hot':
|
841
|
|
- |
posts = database.get_hot_posts ()
|
|
841
|
+ |
posts = database.get_posts (sort='hot')
|
842
|
842
|
|
|
843
|
843
|
|
# Set correct Content-Type header for this RSS feed
|
844
|
844
|
|
response.content_type = 'application/rss+xml; charset=UTF-8'
|