mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
make site setting for read time word count per minute
This commit is contained in:
@@ -228,8 +228,7 @@ const Topic = RestModel.extend({
|
||||
const wordCount = this.get('word_count');
|
||||
if (!wordCount) return;
|
||||
|
||||
// Avg for 500 words per minute when you account for skimming
|
||||
return Math.floor(wordCount / 500.0);
|
||||
return Math.floor(wordCount / Discourse.SiteSettings.read_time_word_count);
|
||||
}.property('word_count'),
|
||||
|
||||
toggleBookmark() {
|
||||
|
||||
Reference in New Issue
Block a user