mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: don't bump topics when hidden tags are added or removed
This commit is contained in:
@@ -110,6 +110,16 @@ module Helpers
|
||||
end
|
||||
end
|
||||
|
||||
def create_hidden_tags(tag_names)
|
||||
tag_group = Fabricate(:tag_group,
|
||||
name: 'Hidden Tags',
|
||||
permissions: { staff: :full }
|
||||
)
|
||||
tag_names.each do |name|
|
||||
tag_group.tags << (Tag.where(name: name).first || Fabricate(:tag, name: name))
|
||||
end
|
||||
end
|
||||
|
||||
def capture_stdout
|
||||
old_stdout = $stdout
|
||||
io = StringIO.new
|
||||
|
||||
Reference in New Issue
Block a user