mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
fix showing thumbnails to compressed users
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user