diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-13 17:36:33 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-13 17:36:33 +0100 |
commit | 4dad282a9553a734c622211560c40b1dd9091b9c (patch) | |
tree | f899bb51f0f055dd90e248f88642079ec70e5b3a /src/web/views/feed.py | |
parent | Added page for public feeds. (diff) | |
download | newspipe-4dad282a9553a734c622211560c40b1dd9091b9c.tar.gz newspipe-4dad282a9553a734c622211560c40b1dd9091b9c.tar.bz2 newspipe-4dad282a9553a734c622211560c40b1dd9091b9c.zip |
check if feed is private
Diffstat (limited to 'src/web/views/feed.py')
-rw-r--r-- | src/web/views/feed.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/web/views/feed.py b/src/web/views/feed.py index 87b47da1..6bc4afe1 100644 --- a/src/web/views/feed.py +++ b/src/web/views/feed.py @@ -82,6 +82,9 @@ def feed_pub(feed_id=None): """ Presents details of a pubic feed. """ + feed = FeedController(None).get(id=feed_id) + if feed.private: + return render_template('errors/404.html'), 404 return feed_view(feed_id, None) |