diff --git a/files/routes/front.py b/files/routes/front.py index 2cda4f99d..9fa1b6935 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -144,7 +144,7 @@ def frontlist(v=None, sort="hot", page=1,t="all", ids_only=True, filter_words='' secondrange = firstrange+1000 posts = posts[firstrange:secondrange] - if v and v.hidevotedon: posts = [x for x in posts if not (x.voted and x.voted != 0)] + if v and v.hidevotedon: posts = [x for x in posts if not (hasattr(x, 'voted') and x.voted != 0)] if page == 1: posts = g.db.query(Submission).filter_by(stickied=True).all() + posts