mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
make site setting for read time word count per minute
This commit is contained in:
parent
736cbf3d2d
commit
51ced7aeae
4 changed files with 8 additions and 3 deletions
|
@ -161,7 +161,7 @@ class TopicView
|
|||
|
||||
def read_time
|
||||
return nil if @post_number.present? && @post_number.to_i != 1 # only show for topic URLs
|
||||
(@topic.word_count/500).floor if @topic.word_count
|
||||
(@topic.word_count/SiteSetting.read_time_word_count).floor if @topic.word_count
|
||||
end
|
||||
|
||||
def like_count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue