Skip to content

A platform for community discussion. Free, open, simple.

FIX: sort tag names in clean up tags staff log entry (#37909)

Alan Guo Xiang Tan414127b42d24
diff --git a/app/jobs/scheduled/clean_up_tags.rb b/app/jobs/scheduled/clean_up_tags.rb
index 68cff5a4541..f310121ae90 100644
--- a/app/jobs/scheduled/clean_up_tags.rb
+++ b/app/jobs/scheduled/clean_up_tags.rb
@@ -12,7 +12,7 @@ module Jobs
tags = Tag.unused.where("tags.created_at < ?", GRACE_PERIOD_MINUTES.minutes.ago)
StaffActionLogger.new(Discourse.system_user).log_custom(
"deleted_unused_tags",
- tags: tags.pluck(:name),
+ tags: tags.order(:name).pluck(:name),
)
tags.destroy_all
end