Improve code style
This commit is contained in:
parent
e4aebad35a
commit
927333f4f8
41 changed files with 126 additions and 122 deletions
|
@ -35,7 +35,7 @@ class Formatter
|
|||
def link_mentions(html, mentions)
|
||||
html.gsub(Account::MENTION_RE) do |match|
|
||||
acct = Account::MENTION_RE.match(match)[1]
|
||||
mention = mentions.find { |item| item.account.acct.eql?(acct) }
|
||||
mention = mentions.find { |item| item.account.acct.casecmp(acct).zero? }
|
||||
|
||||
mention.nil? ? match : mention_html(match, mention.account)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue