Browse Source

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

closed-social-v3
Takeshi Umeda 3 years ago
committed by GitHub
parent
commit
c968d22ee9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/lib/formatter.rb

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

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

Loading…
Cancel
Save