mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 10:17:19 +08:00
added option that allows users to decide when they consider topics new (default 2 days old or newer)
added site_setting to control the default new_topic_duration_minutes added 10 minutes option for auto_track_topics_after_msecs, default bumped up to 5 mins
This commit is contained in:
@ -155,6 +155,14 @@ describe TopicQuery do
|
||||
topics.should == [new_topic]
|
||||
end
|
||||
|
||||
it "contains no new topics for a user that has missed the window" do
|
||||
user.new_topic_duration_minutes = 5
|
||||
user.save
|
||||
new_topic.created_at = 10.minutes.ago
|
||||
new_topic.save
|
||||
topics.should == []
|
||||
end
|
||||
|
||||
context "muted topics" do
|
||||
before do
|
||||
new_topic.notify_muted!(user)
|
||||
|
Reference in New Issue
Block a user