Fix formatter return block

signup-info-prompt
Eugen Rochko 2016-09-10 19:18:17 +02:00
parent 0077fc26df
commit 3d566279cb
1 changed files with 1 additions and 2 deletions

View File

@ -37,8 +37,7 @@ class Formatter
acct = Account::MENTION_RE.match(match)[1] acct = Account::MENTION_RE.match(match)[1]
mention = mentions.find { |mention| mention.account.acct.eql?(acct) } mention = mentions.find { |mention| mention.account.acct.eql?(acct) }
return match if mention.nil? mention.nil? ? match : mention_html(match, mention.account)
mention_html(match, mention.account)
end end
end end