Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into feature/removing_ruby_junk
This commit is contained in:
@@ -22,6 +22,12 @@ class TagManager
|
||||
uri.normalized_host
|
||||
end
|
||||
|
||||
def normalize_link(link)
|
||||
return if link.nil?
|
||||
uri = Addressable::URI.parse(link)
|
||||
return "#{uri.normalized_host}#{uri.normalized_path}"
|
||||
end
|
||||
|
||||
def same_acct?(canonical, needle)
|
||||
return true if canonical.casecmp(needle).zero?
|
||||
username, domain = needle.split('@')
|
||||
|
||||
Reference in New Issue
Block a user