Merge pull request #9056 from annando/ap-follow
ActivityPub accounts don't need a "poll" endpoint
This commit is contained in:
commit
b52070aa2f
|
@ -2088,7 +2088,7 @@ class Contact
|
||||||
}
|
}
|
||||||
|
|
||||||
// do we have enough information?
|
// 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;
|
$result['message'] .= DI::l10n()->t('The profile address specified does not provide adequate information.') . EOL;
|
||||||
if (empty($ret['poll'])) {
|
if (empty($ret['poll'])) {
|
||||||
$result['message'] .= DI::l10n()->t('No compatible communication protocols or feeds were discovered.') . EOL;
|
$result['message'] .= DI::l10n()->t('No compatible communication protocols or feeds were discovered.') . EOL;
|
||||||
|
|
Loading…
Reference in a new issue