mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Button to reset new
This commit is contained in:
@@ -21,7 +21,8 @@ class TopicsController < ApplicationController
|
||||
:merge_topic,
|
||||
:clear_pin,
|
||||
:autoclose,
|
||||
:bulk]
|
||||
:bulk,
|
||||
:reset_new]
|
||||
|
||||
before_filter :consider_user_for_promotion, only: :show
|
||||
|
||||
@@ -281,6 +282,11 @@ class TopicsController < ApplicationController
|
||||
render_json_dump topic_ids: changed_topic_ids
|
||||
end
|
||||
|
||||
def reset_new
|
||||
current_user.user_stat.update_column(:new_since, Time.now)
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def toggle_mute
|
||||
|
||||
Reference in New Issue
Block a user