mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:10:11 +00:00
Issue 10306: Improve local delivery
This commit is contained in:
parent
91b474ea6d
commit
785f8124ed
8 changed files with 131 additions and 99 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue