Browse Source

Fix formatter return block

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
3d566279cb
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      app/lib/formatter.rb

+ 1
- 2
app/lib/formatter.rb View File

@ -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

Loading…
Cancel
Save