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:
Max Goodman
2013-08-20 14:42:44 -07:00
committed by Neil Williams
parent ec5eea9b71
commit e0d27579c8

View File

@@ -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: