aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/views')
-rw-r--r--src/web/views/article.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/web/views/article.py b/src/web/views/article.py
index 572c019e..163ba413 100644
--- a/src/web/views/article.py
+++ b/src/web/views/article.py
@@ -39,6 +39,19 @@ def article(article_id=None):
head_titles=[clear_string(article.title)],
article=article)
+@article_bp.route('/public/<int:article_id>', methods=['GET'])
+@etag_match
+def article_pub(article_id=None):
+ """
+ Presents the content of an article of a public feed.
+ """
+ article = ArticleController().get(id=article_id)
+ if article.source.private:
+ return render_template('errors/404.html'), 404
+ return render_template('article_pub.html',
+ head_titles=[clear_string(article.title)],
+ article=article)
+
@article_bp.route('/like/<int:article_id>', methods=['GET'])
@login_required
bgstack15