mirror of
https://github.com/discourse/discourse.git
synced 2025-06-25 01:30:17 +08:00
FEATURE: Rename Reset Read bulk action to Defer (#15972)
It is enabled only if defer is enabled in user options too and if the button shows up in the topic's footer.
This commit is contained in:
@ -292,7 +292,7 @@ class TopicsController < ApplicationController
|
||||
topic_id = params[:topic_id].to_i
|
||||
|
||||
if params[:last].to_s == "1"
|
||||
PostTiming.destroy_last_for(current_user, topic_id)
|
||||
PostTiming.destroy_last_for(current_user, topic_id: topic_id)
|
||||
else
|
||||
PostTiming.destroy_for(current_user.id, [topic_id])
|
||||
end
|
||||
|
Reference in New Issue
Block a user