Merge pull request #9078 from annando/issue-8994

Issue 8994: Mail contacts can now be added again
This commit is contained in:
Hypolite Petovan
2020-08-26 15:56:40 -04:00
committed by GitHub

View File

@@ -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);