mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FEATURE: Bulk reset read
status.
This commit is contained in:
@ -8,7 +8,7 @@ class TopicsBulkAction
|
||||
end
|
||||
|
||||
def self.operations
|
||||
%w(change_category close change_notification_level)
|
||||
%w(change_category close change_notification_level reset_read)
|
||||
end
|
||||
|
||||
def perform!
|
||||
@ -19,6 +19,10 @@ class TopicsBulkAction
|
||||
|
||||
private
|
||||
|
||||
def reset_read
|
||||
PostTiming.destroy_for(@user.id, @topic_ids)
|
||||
end
|
||||
|
||||
def change_category
|
||||
topics.each do |t|
|
||||
if guardian.can_edit?(t)
|
||||
|
Reference in New Issue
Block a user