Skip to content

Commit

Permalink
Return URLs in Markdown format
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosba committed May 22, 2024
1 parent 98bdac2 commit 7ed9de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: "\n" + 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)
Expand Down

0 comments on commit 7ed9de7

Please sign in to comment.