Skip to content
Snippets Groups Projects
Unverified Commit c968d22e authored by Takeshi Umeda's avatar Takeshi Umeda Committed by GitHub
Browse files

Fix an error with 'multiple mentions with same username' (#16038)

parent e78d06ee
No related branches found
No related tags found
No related merge requests found
......@@ -276,7 +276,7 @@ class Formatter
linkable_accounts.each do |item|
same_username = item.username.casecmp(username).zero?
same_domain = item.domain.nil? ? domain.nil? : item.domain.casecmp(domain).zero?
same_domain = item.domain.nil? ? domain.nil? : item.domain.casecmp(domain)&.zero?
if same_username && !same_domain
same_username_hits += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment