mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 13:21:01 +08:00
FIX: too_few_topics_notice check and message should use basic_requires_read_posts site setting
This commit is contained in:
@ -152,8 +152,8 @@ window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
|
||||
post_count += c.get('post_count');
|
||||
}
|
||||
});
|
||||
if (topic_count < 5 || post_count < 50) {
|
||||
notices.push(I18n.t("too_few_topics_notice"));
|
||||
if (topic_count < 5 || post_count < Discourse.SiteSettings.basic_requires_read_posts) {
|
||||
notices.push(I18n.t("too_few_topics_notice", {posts: Discourse.SiteSettings.basic_requires_read_posts}));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user