Function lemmy_utils::request::fetch_site_data[][src]

pub async fn fetch_site_data(
    client: &Client,
    settings: &Settings,
    url: Option<&Url>
) -> (Option<SiteMetadata>, Option<Url>)
Expand description

Both are options, since the URL might be either an html page, or an image Returns the SiteMetadata, and a Pictrs URL, if there is a picture associated