Commit f59aefd3 authored by Mario's avatar Mario
Browse files

store actor of fetched acivities

parent 451468d1
......@@ -2648,7 +2648,7 @@ class Activity {
$current_item = $item;
while($current_item['parent_mid'] !== $current_item['mid']) {
$n = ActivityStreams::fetch($current_item['parent_mid'], $channel);
$n = self::fetch($current_item['parent_mid'], $channel);
if(! $n) {
break;
}
......@@ -2660,6 +2660,10 @@ class Activity {
break;
}
if (is_array($a->actor) && array_key_exists('id',$a->actor)) {
self::actor_store($a->actor['id'],$a->actor);
}
$replies = null;
if(isset($a->obj['replies']['first']['items'])) {
$replies = $a->obj['replies']['first']['items'];
......@@ -2725,7 +2729,7 @@ class Activity {
foreach($arr as $url) {
$n = ActivityStreams::fetch($url, $channel);
$n = self::fetch($url, $channel);
if(! $n) {
break;
}
......
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