Display default thumbnail on deleted or removed links.

This commit is contained in:
Jason Harvey
2013-02-20 20:30:27 -08:00
parent 9f5c86a5cd
commit c28061e1e4

View File

@@ -414,6 +414,10 @@ class Link(Thing, Printable):
item.thumbnail = ""
elif not show_media:
item.thumbnail = ""
elif (item._deleted or
item._spam and item._date < timeago("6 hours")):
item.thumbnail = "default"
item.thumbnail_sprited = True
elif item.has_thumbnail:
item.thumbnail = media.thumbnail_url(item)
elif item.is_self: