Also, I think that if you really want this autotag everything feature in your forum, just post it to marketplace. It’s a relatively easy plugin to create:
DiscourseEvent.on(:post_created) do |post|
topic = post.topic
if topic.closed?
topic.add_tag closed_tag
elsif post.wiki?
topic.add_tag wiki_tag
# and so on
end