aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-23 09:10:53 +0000
committerMario <mario@mariovavti.com>2020-11-23 09:10:53 +0000
commitf59aefd3d9d8191409edeb1bfdba3f16f0af9b12 (patch)
tree562276d113111904505b60eb3f7f1321028dbb99 /Zotlabs/Lib
parent451468d1297ba41a6c9ea29709444ceb15185bfb (diff)
downloadvolse-hubzilla-f59aefd3d9d8191409edeb1bfdba3f16f0af9b12.tar.gz
volse-hubzilla-f59aefd3d9d8191409edeb1bfdba3f16f0af9b12.tar.bz2
volse-hubzilla-f59aefd3d9d8191409edeb1bfdba3f16f0af9b12.zip
store actor of fetched acivities
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Activity.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 5f222754b..5751d276a 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -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;
}