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:
Bianca Nenciu
2022-02-21 22:45:01 +02:00
committed by GitHub
parent 94883dd326
commit 90c3695ab0
8 changed files with 34 additions and 23 deletions

View File

@ -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