dtext parse mentions
This commit is contained in:
@@ -24,7 +24,7 @@ module Mentionable
|
|||||||
text.scan(DText::MENTION_REGEXP).each do |mention|
|
text.scan(DText::MENTION_REGEXP).each do |mention|
|
||||||
mention.gsub!(/(?:^\s*@)|(?:[:;,.!?\)\]<>]$)/, "")
|
mention.gsub!(/(?:^\s*@)|(?:[:;,.!?\)\]<>]$)/, "")
|
||||||
user = User.find_by_name(mention)
|
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
|
if user
|
||||||
dmail = Dmail.new(
|
dmail = Dmail.new(
|
||||||
|
|||||||
Reference in New Issue
Block a user