// If it is a local link, we save resources by just redirecting to it.
if (Network::isLocalLink($url)) {
System::externalRedirect($url);
- System::exit();
}
$mimetext = '';
}
if (Network::isLocalLink($url)) {
System::externalRedirect($url);
- System::exit();
}
}
return MPhoto::createPhotoForExternalResource($url, 0, $mimetext, $contact['blurhash'] ?? null, $customsize, $customsize);
$url = Contact::getDefaultHeader($contact);
if (Network::isLocalLink($url)) {
System::externalRedirect($url);
- System::exit();
}
}
return MPhoto::createPhotoForExternalResource($url);
if (Network::isLocalLink($default)) {
System::externalRedirect($default);
- System::exit();
}
$parts = parse_url($default);