mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:15:11 +00:00
connect issue with activitypub for wordpress
This commit is contained in:
parent
96100b76f1
commit
255ec3d642
2 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -245,7 +245,7 @@ class HTTPSig {
|
|||
return $key;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (strpos($id,'#') === false) {
|
||||
$key = self::get_webfinger_key($id,$force);
|
||||
|
|
Loading…
Reference in a new issue