diff --git a/app/models/concerns/mentions.rb b/app/models/concerns/mentions.rb index b24627672..35d1a42f8 100644 --- a/app/models/concerns/mentions.rb +++ b/app/models/concerns/mentions.rb @@ -15,8 +15,8 @@ module Mentions def mentionable_content markdown_associations.collect do |association| - send(association.name).to_plain_text - end.join(" ") + send(association.name)&.to_plain_text + end.compact.join(" ") end private