diff --git a/app/models/cluster.rb b/app/models/cluster.rb index 5c10fcdb7f..e5ff6cd605 100644 --- a/app/models/cluster.rb +++ b/app/models/cluster.rb @@ -38,7 +38,7 @@ def import_medias_to_team(team, claim_title, claim_context, parent_id = nil) existing_items << existing_item existing_item.nil? end - raise ActiveRecord::RecordNotUnique.new(I18n.t(:shared_feed_imported_media_already_exist, urls: existing_items.map(&:full_url).uniq.compact_blank.join(', '))) if from_project_media.nil? + raise ActiveRecord::RecordNotUnique.new(I18n.t(:shared_feed_imported_media_already_exist, urls: existing_items.uniq.compact_blank.collect{ |pm| "•︎ [#{pm.title}](#{pm.full_url})" }.join("\n"))) if from_project_media.nil? parent = nil if parent_id.nil? parent = self.import_media_to_team(team, from_project_media, claim_title, claim_context) diff --git a/config/locales/en.yml b/config/locales/en.yml index 79bf95e292..364f6241f5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -822,7 +822,10 @@ en: send_every_must_be_a_list_of_days_of_the_week: must be a list of days of the week. send_on_must_be_in_the_future: can't be in the past. cant_delete_default_folder: The default folder can't be deleted - shared_feed_imported_media_already_exist: "No media to import. All media items from this item already exist in your workspace: %{urls}" + shared_feed_imported_media_already_exist: |- + No media eligible to be imported into your workspace. + The media selected to import already exist in your workspace in the following items: + %{urls} info: messages: sent_to_trash_by_rule: '"%{item_title}" has been sent to trash by an automation