mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
DEV: Remove summarization code (#27373)
This commit is contained in:
@ -78,7 +78,6 @@ class TopicViewSerializer < ApplicationSerializer
|
||||
:user_last_posted_at,
|
||||
:is_shared_draft,
|
||||
:slow_mode_enabled_until,
|
||||
:summarizable,
|
||||
)
|
||||
|
||||
has_one :details, serializer: TopicViewDetailsSerializer, root: false, embed: :objects
|
||||
@ -311,10 +310,6 @@ class TopicViewSerializer < ApplicationSerializer
|
||||
object.topic.slow_mode_topic_timer&.execute_at
|
||||
end
|
||||
|
||||
def summarizable
|
||||
object.summarizable?
|
||||
end
|
||||
|
||||
def include_categories?
|
||||
scope.can_lazy_load_categories?
|
||||
end
|
||||
|
Reference in New Issue
Block a user