mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
FEATURE: Topic slow mode. (#10904)
Adds a new slow mode for topics that are heating up. Users will have to wait for a period of time before being able to post again. We store this interval inside the topics table and track the last time a user posted using the last_posted_at datetime in the TopicUser relation.
This commit is contained in:
@ -20,6 +20,7 @@ class WebHookTopicViewSerializer < TopicViewSerializer
|
||||
topic_timer
|
||||
details
|
||||
image_url
|
||||
slow_mode_seconds
|
||||
}.each do |attr|
|
||||
define_method("include_#{attr}?") do
|
||||
false
|
||||
|
Reference in New Issue
Block a user