Issue 10306: Improve local delivery

This commit is contained in:
Michael 2021-05-26 09:24:37 +00:00
parent 91b474ea6d
commit 785f8124ed
8 changed files with 131 additions and 99 deletions

View file

@ -313,7 +313,7 @@ class User
public static function getIdForURL(string $url)
{
// Avoid any database requests when the hostname isn't even part of the url.
if (!strpos($url, DI::baseUrl()->getHostname())) {
if (!Contact::isLocal($url)) {
return 0;
}