mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
FIX: use 'freeze' method again to fix 'cant modify frozen string' error
8d5c900142
This commit is contained in:
parent
536b90e0ef
commit
b0600e52b6
@ -1,4 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
require_dependency 'pretty_text'
|
||||
require_dependency 'rate_limiter'
|
||||
require_dependency 'post_revisor'
|
||||
@ -61,10 +60,10 @@ class Post < ActiveRecord::Base
|
||||
# We can pass several creating options to a post via attributes
|
||||
attr_accessor :image_sizes, :quoted_post_numbers, :no_bump, :invalidate_oneboxes, :cooking_options, :skip_unique_check, :skip_validation
|
||||
|
||||
LARGE_IMAGES ||= "large_images"
|
||||
BROKEN_IMAGES ||= "broken_images"
|
||||
DOWNLOADED_IMAGES ||= "downloaded_images"
|
||||
MISSING_UPLOADS ||= "missing uploads"
|
||||
LARGE_IMAGES ||= "large_images".freeze
|
||||
BROKEN_IMAGES ||= "broken_images".freeze
|
||||
DOWNLOADED_IMAGES ||= "downloaded_images".freeze
|
||||
MISSING_UPLOADS ||= "missing uploads".freeze
|
||||
|
||||
SHORT_POST_CHARS ||= 1200
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user