mirror of
https://github.com/discourse/discourse.git
synced 2025-06-08 00:27:32 +08:00
basic lightbox support
This commit is contained in:
@ -14,12 +14,10 @@ class Post < ActiveRecord::Base
|
||||
FLAG_THRESHOLD_REACHED_AGAIN = 2
|
||||
end
|
||||
|
||||
|
||||
versioned
|
||||
|
||||
rate_limit
|
||||
|
||||
acts_as_paranoid
|
||||
|
||||
after_recover :update_flagged_posts_count
|
||||
after_destroy :update_flagged_posts_count
|
||||
|
||||
|
@ -107,7 +107,7 @@ footer:after{ content: '#{error}' }"
|
||||
|
||||
@lock.synchronize do
|
||||
style = self.where(key: key).first
|
||||
style.ensure_stylesheet_on_disk!
|
||||
style.ensure_stylesheet_on_disk! if style
|
||||
@cache[key] = style
|
||||
end
|
||||
end
|
||||
|
@ -81,7 +81,7 @@ class SiteSetting < ActiveRecord::Base
|
||||
setting(:max_flags_per_day, 20)
|
||||
setting(:max_edits_per_day, 30)
|
||||
setting(:max_favorites_per_day, 20)
|
||||
|
||||
setting(:auto_link_images_wider_than, 50)
|
||||
|
||||
setting(:email_time_window_mins, 5)
|
||||
|
||||
|
Reference in New Issue
Block a user