mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 19:57:18 +08:00
FIX: use excerpt instead of the summary
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
require_dependency 'guardian'
|
||||
require_dependency 'topic_query'
|
||||
require_dependency 'filter_best_posts'
|
||||
require_dependency 'summarize'
|
||||
require_dependency 'gaps'
|
||||
|
||||
class TopicView
|
||||
@ -115,7 +114,7 @@ class TopicView
|
||||
def summary
|
||||
return nil if desired_post.blank?
|
||||
# TODO, this is actually quite slow, should be cached in the post table
|
||||
Summarize.new(desired_post.cooked).summary
|
||||
desired_post.excerpt(500)
|
||||
end
|
||||
|
||||
def image_url
|
||||
|
Reference in New Issue
Block a user