richer news feed, change screenshots/thumbnails to use retina quality

This commit is contained in:
Kyle Drake 2014-09-17 20:13:14 -07:00
parent 45168341de
commit 1d200a886e
11 changed files with 69 additions and 36 deletions

View file

@ -59,8 +59,8 @@ class Site < Sequel::Model
HTML_REGEX = /htm|html/
MAX_COMMENT_SIZE = 420 # Used to be the limit for Facebook.. no comment (PUN NOT INTENDED).
SCREENSHOT_RESOLUTIONS = ['235x141', '105x63', '270x162', '37x37', '146x88', '302x182', '90x63', '82x62', '348x205']
THUMBNAIL_RESOLUTIONS = ['105x63', '90x63']
SCREENSHOT_RESOLUTIONS = ['540x405', '210x158', '100x100', '50x50']
THUMBNAIL_RESOLUTIONS = ['210x158']
CLAMAV_THREAT_MATCHES = [
/^VBS/,
@ -779,7 +779,6 @@ class Site < Sequel::Model
following_ids = self.followings_dataset.select(:site_id).all.collect {|f| f.site_id}
Event.filter(site_id: following_ids+[self.id]).
order(:created_at.desc).
exclude(actioning_site_id: self.id).
paginate(current_page, limit)
end