mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Fix formatter return block
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user