Skip to main content

same_host

Function same_host 

Source
pub fn same_host(base: &str, comparison: &str) -> bool
Expand description

Whether comparison is an http or https URL on the same host as base, whatever their schemes and ports: Mastodon’s non_matching_uri_hosts?, negated, which is how it decides that a collection page or a pinned post is on an account’s server. Hosts are compared without regard to case.