Commit ae278592 authored by Zot's avatar Zot Committed by Mario

support pterotype


(cherry picked from commit 37a77cc6)
parent eee86d56
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
use Zotlabs\Lib\Apps; use Zotlabs\Lib\Apps;
use Zotlabs\Extend\Hook; use Zotlabs\Extend\Hook;
use Zotlabs\Extend\Route; use Zotlabs\Extend\Route;
use Zotlabs\Lib\ActivityStreams;
require_once('addon/pubcrawl/as.php'); require_once('addon/pubcrawl/as.php');
...@@ -183,10 +184,10 @@ function pubcrawl_discover_channel_webfinger(&$b) { ...@@ -183,10 +184,10 @@ function pubcrawl_discover_channel_webfinger(&$b) {
// Now find the actor and see if there is something we can follow // Now find the actor and see if there is something we can follow
$person_obj = null; $person_obj = null;
if(in_array($AS->type, [ 'Person', 'Group', 'Profile' ])) { if(in_array($AS->type, [ 'Application', 'Group', 'Organization', 'Person', 'Service' ])) {
$person_obj = $AS->data; $person_obj = $AS->data;
} }
elseif($AS->obj && ( in_array($AS->obj['type'], [ 'Person', 'Group', 'Profile' ] ))) { elseif($AS->obj && ( in_array($AS->obj['type'], [ 'Application', 'Group', 'Organization', 'Person', 'Service' ] ))) {
$person_obj = $AS->obj; $person_obj = $AS->obj;
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment