mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
Remove legacy vote post action code. (#6009)
This commit is contained in:
@ -13,6 +13,9 @@ require_dependency 'topic_posters_summary'
|
||||
require_dependency 'topic_featured_users'
|
||||
|
||||
class Topic < ActiveRecord::Base
|
||||
# TODO: Remove this after 19th Dec 2018
|
||||
self.ignored_columns = %w{vote_count}
|
||||
|
||||
class UserExists < StandardError; end
|
||||
include ActionView::Helpers::SanitizeHelper
|
||||
include RateLimiter::OnCreateRecord
|
||||
@ -44,10 +47,6 @@ class Topic < ActiveRecord::Base
|
||||
end
|
||||
end
|
||||
|
||||
def self.max_sort_order
|
||||
@max_sort_order ||= (2**31) - 1
|
||||
end
|
||||
|
||||
def self.max_fancy_title_length
|
||||
400
|
||||
end
|
||||
@ -1429,7 +1428,6 @@ end
|
||||
# archived :boolean default(FALSE), not null
|
||||
# bumped_at :datetime not null
|
||||
# has_summary :boolean default(FALSE), not null
|
||||
# vote_count :integer default(0), not null
|
||||
# archetype :string default("regular"), not null
|
||||
# featured_user4_id :integer
|
||||
# notify_moderators_count :integer default(0), not null
|
||||
|
Reference in New Issue
Block a user