From 1a01375574f0fa089db20e5fc9881b34a146bf4d Mon Sep 17 00:00:00 2001 From: spez Date: Thu, 8 Jan 2009 10:55:31 -0800 Subject: [PATCH] fix showing thumbnails to compressed users --- r2/r2/models/link.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/r2/r2/models/link.py b/r2/r2/models/link.py index 38aa05417..1ea48054c 100644 --- a/r2/r2/models/link.py +++ b/r2/r2/models/link.py @@ -259,14 +259,15 @@ class Link(Thing, Printable): for item in wrapped: show_media = False - if c.user.pref_media == 'on': + if c.user.pref_compress: + pass + elif c.user.pref_media == 'on': show_media = True elif c.user.pref_media == 'subreddit' and item.subreddit.show_media: show_media = True elif (item.promoted and item.has_thumbnail - and c.user.pref_media != 'off' - and not c.user.pref_compress): + and c.user.pref_media != 'off'): show_media = True if not show_media: