dtext parse mentions

This commit is contained in:
r888888888
2015-11-02 11:34:47 -08:00
parent 6fe1a69e8e
commit f8cea30602

View File

@@ -24,7 +24,7 @@ module Mentionable
text.scan(DText::MENTION_REGEXP).each do |mention|
mention.gsub!(/(?:^\s*@)|(?:[:;,.!?\)\]<>]$)/, "")
user = User.find_by_name(mention)
body = self.class.mentionable_option(:body).call(self, user.name)
body = DText.parse(self.class.mentionable_option(:body).call(self, user.name))
if user
dmail = Dmail.new(