revert dtext parser on mentions

This commit is contained in:
r888888888
2015-11-02 13:55:40 -08:00
parent 4cf7effc4a
commit faa41d6181

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 = DText.parse(self.class.mentionable_option(:body).call(self, user.name))
body = self.class.mentionable_option(:body).call(self, user.name)
if user
dmail = Dmail.new(