mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Fix formatter return block
This commit is contained in:
parent
0077fc26df
commit
3d566279cb
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue