aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Fetchparents.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Daemon/Fetchparents.php')
-rw-r--r--Zotlabs/Daemon/Fetchparents.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/Zotlabs/Daemon/Fetchparents.php b/Zotlabs/Daemon/Fetchparents.php
index 4daf8c019..b00acdfbf 100644
--- a/Zotlabs/Daemon/Fetchparents.php
+++ b/Zotlabs/Daemon/Fetchparents.php
@@ -14,8 +14,8 @@ class Fetchparents {
return;
}
- $channel = channelx_by_n(intval($argv[1]));
- if (!$channel) {
+ $channels = explode(',', $argv[1]);
+ if (!$channels) {
return;
}
@@ -31,7 +31,10 @@ class Fetchparents {
$force = $argv[4] ?? false;
- Activity::fetch_and_store_parents($channel, $observer_hash, $mid, null, $force);
+ foreach ($channels as $channel_id) {
+ $channel = channelx_by_n($channel_id);
+ Activity::fetch_and_store_parents($channel, $observer_hash, $mid, null, $force);
+ }
return;