Updated TagManage normalize_link function

• Updated:
- TagManage normalize_link function
This commit is contained in:
mgabdev 2020-12-09 11:03:49 -05:00
parent c18991f174
commit 000363d143

View File

@ -25,7 +25,7 @@ class TagManager
def normalize_link(link)
return if link.nil?
uri = Addressable::URI.parse(link)
return "#{uri.normalized_host}#{uri.normalized_path}"
return "#{uri.normalized_host}#{uri.normalized_path}".strip
end
def same_acct?(canonical, needle)