]> git.mxchange.org Git - friendica.git/commitdiff
ActivityPub accounts don't need a "poll" endpoint
authorMichael <heluecht@pirati.ca>
Sun, 23 Aug 2020 07:37:14 +0000 (07:37 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 23 Aug 2020 07:37:14 +0000 (07:37 +0000)
src/Model/Contact.php

index c5df814bf68014b1f48fb6eaa9225b8cb35201c6..eed77b662fa8c5814f049eba9ad96750d6557b0a 100644 (file)
@@ -2088,7 +2088,7 @@ class Contact
                }
 
                // do we have enough information?
-               if (empty($ret['name']) || empty($ret['poll']) || (empty($ret['url']) && empty($ret['addr']))) {
+               if (empty($protocol) || ($protocol == Protocol::PHANTOM) || (empty($ret['url']) && empty($ret['addr']))) {
                        $result['message'] .= DI::l10n()->t('The profile address specified does not provide adequate information.') . EOL;
                        if (empty($ret['poll'])) {
                                $result['message'] .= DI::l10n()->t('No compatible communication protocols or feeds were discovered.') . EOL;