aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/views')
-rw-r--r--pyaggr3g470r/views/feed.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyaggr3g470r/views/feed.py b/pyaggr3g470r/views/feed.py
index 3556d7c7..18e110af 100644
--- a/pyaggr3g470r/views/feed.py
+++ b/pyaggr3g470r/views/feed.py
@@ -189,7 +189,8 @@ def process_form(feed_id=None):
@feed_bp.route('/icon/<int:feed_id>', methods=['GET'])
@login_required
def icon(feed_id):
- icon = FeedController(g.user.id).get(id=feed_id).icon
+ icon = FeedController(None if g.user.is_admin() else g.user.id)\
+ .get(id=feed_id).icon
etag = md5(icon.encode('utf8')).hexdigest()
headers = {'Cache-Control': 'max-age=86400', 'ETag': etag}
if request.headers.get('if-none-match') == etag:
bgstack15