mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Topic embedding importer should accept string tags (#27624)
* FIX: Embedding importer should accept string tags
This commit is contained in:
@@ -122,7 +122,7 @@ class TopicEmbed < ActiveRecord::Base
|
||||
end
|
||||
|
||||
existing_tag_names = post.topic.tags.pluck(:name).sort
|
||||
incoming_tag_names = Array(tags).map(&:name).sort
|
||||
incoming_tag_names = Array(tags).map { |tag| tag.respond_to?(:name) ? tag.name : tag }.sort
|
||||
|
||||
tags_changed = existing_tag_names != incoming_tag_names
|
||||
|
||||
|
||||
Reference in New Issue
Block a user