mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Add .compressed class to items in the spotlight box where appropriate.
This was causing promoted links to display with the 2 line tagline formatting even though they did not have a thumbnail.
This commit is contained in:
committed by
Neil Williams
parent
ec5eea9b71
commit
e0d27579c8
@@ -393,7 +393,7 @@ class Link(Thing, Printable):
|
||||
if c.render_style == 'compact':
|
||||
item.score_fmt = Score.points
|
||||
item.pref_compress = user.pref_compress
|
||||
if user.pref_compress and item.promoted is None:
|
||||
if user.pref_compress:
|
||||
item.render_css_class = "compressed link"
|
||||
item.score_fmt = Score.points
|
||||
elif pref_media == 'on' and not user.pref_compress:
|
||||
|
||||
Reference in New Issue
Block a user