From: Hypolite Petovan Date: Wed, 26 Aug 2020 21:12:10 +0000 (-0400) Subject: Merge pull request #9079 from annando/replace X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8f1d2b00a5d7db8d37fb589f7ebe61dc0ed14368;hp=e71545800544514a92df0d9b468e4c3119fd2155;p=friendica.git Merge pull request #9079 from annando/replace Added support for the "replace" database command --- diff --git a/mod/follow.php b/mod/follow.php index ac07d040cc..885730f07c 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -108,7 +108,13 @@ function follow_content(App $a) } $contact = Contact::getByURL($url, true); + + // Possibly it is a mail contact if (empty($contact)) { + $contact = Probe::uri($url, Protocol::MAIL, $uid); + } + + if (empty($contact) || ($contact['network'] == Protocol::PHANTOM)) { // Possibly it is a remote item and not an account follow_remote_item($url);