dtext parse mentions
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user