diff --git a/app/models/post.rb b/app/models/post.rb index 265b237ffd3..82fa47a262e 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -240,7 +240,7 @@ class Post < ActiveRecord::Base end def self.summary - where(["(post_number = 1) or (percent_rank <= ?)", SiteSetting.summary_percent_filter.to_f / 100.0]).limit(100) + where(["(post_number = 1) or (percent_rank <= ?)", SiteSetting.summary_percent_filter.to_f / 100.0]).limit(SiteSetting.summary_max_results) end def update_flagged_posts_count diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 74e83380727..4a135e22a57 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -695,6 +695,8 @@ en: summary_posts_required: "Minimum posts in a topic before 'Summarize This Topic' is enabled" summary_likes_required: "Minimum likes in a topic before 'Summarize This Topic' is enabled" summary_percent_filter: "When a user clicks 'Summarize This Topic', show the top % of posts" + summary_max_results: "Maximum posts returned by 'Summary This Topic'" + enable_private_messages: "Allow trust level 1 users to create private messages and reply to private messages" enable_long_polling: "Message bus used for notification can use long polling" diff --git a/config/site_settings.yml b/config/site_settings.yml index e76a72e1e41..2274aa2350c 100644 --- a/config/site_settings.yml +++ b/config/site_settings.yml @@ -713,6 +713,7 @@ uncategorized: summary_posts_required: 50 summary_likes_required: 1 summary_percent_filter: 20 + summary_max_results: 100 # View heat thresholds topic_views_heat_low: