connect issue with activitypub for wordpress

This commit is contained in:
zotlabs 2020-07-20 22:40:07 -07:00
parent 96100b76f1
commit 255ec3d642
2 changed files with 5 additions and 3 deletions

View file

@ -234,8 +234,10 @@ class Inbox extends Controller {
Activity::follow($channel,$AS);
}
break;
case 'Accept':
if (is_array($AS->obj) && array_key_exists('type', $AS->obj) && $AS->obj['type'] === 'Follow') {
case 'Accept':
// Activitypub for wordpress sends lowercase 'follow' on accept.
// https://github.com/pfefferle/wordpress-activitypub/issues/97
if (is_array($AS->obj) && array_key_exists('type', $AS->obj) && in_array($AS->obj['type'], ['Follow','follow'])) {
// do follow activity
Activity::follow($channel,$AS);
}

View file

@ -245,7 +245,7 @@ class HTTPSig {
return $key;
}
}
if (strpos($id,'#') === false) {
$key = self::get_webfinger_key($id,$force);