Commit 3d566279 authored by Eugen Rochko's avatar Eugen Rochko

Fix formatter return block

parent 0077fc26
......@@ -37,8 +37,7 @@ class Formatter
acct = Account::MENTION_RE.match(match)[1]
mention = mentions.find { |mention| mention.account.acct.eql?(acct) }
return match if mention.nil?
mention_html(match, mention.account)
mention.nil? ? match : mention_html(match, mention.account)
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment