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

@ -235,7 +235,9 @@ class Inbox extends Controller {
}
break;
case 'Accept':
if (is_array($AS->obj) && array_key_exists('type', $AS->obj) && $AS->obj['type'] === 'Follow') {
// 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);
}