aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-24 15:00:01 +0000
committerMario <mario@mariovavti.com>2021-01-24 15:00:01 +0000
commit4fbedb67508fd670493bf3be4f6a91160c4f1024 (patch)
treefc2ed75b89174842ded5d4c28595813f5f8a750b /Zotlabs/Lib/Activity.php
parent007de17702a6fd57ffc9e5f0ad28977d5c4c6697 (diff)
downloadvolse-hubzilla-4fbedb67508fd670493bf3be4f6a91160c4f1024.tar.gz
volse-hubzilla-4fbedb67508fd670493bf3be4f6a91160c4f1024.tar.bz2
volse-hubzilla-4fbedb67508fd670493bf3be4f6a91160c4f1024.zip
extra check for item_private in fetch_and_store_parents()
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php27
1 files changed, 22 insertions, 5 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 197409a19..46ce075fd 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -2598,9 +2598,10 @@ class Activity {
$allowed = true;
}
- // TODO: not implemented
- /*if (intval($channel['channel_system'])) {
+ if ($is_sys_channel) {
+
+ /* TODO: not implemented
if (! check_pubstream_channelallowed($observer_hash)) {
$allowed = false;
}
@@ -2618,7 +2619,12 @@ class Activity {
}
}
}
- }*/
+ */
+
+ if (intval($item['item_private'])) {
+ $allowed = false;
+ }
+ }
// TODO: not implemented
/*$blocked = LibBlock::fetch($channel['channel_id'],BLOCKTYPE_SERVER);
@@ -2945,9 +2951,20 @@ class Activity {
if ($item) {
$item['item_fetched'] = 1;
- array_unshift($p, [$a, $item]);
- if ($item['parent_mid'] === $item['mid'] || count($p) > 100) {
+ if (intval($channel['channel_system']) && intval($item['item_private'])) {
+ $p = [];
+ break;
+ }
+
+ if (count($p) > 100) {
+ $p = [];
+ break;
+ }
+
+ array_unshift($p,[ $a, $item ]);
+
+ if ($item['parent_mid'] === $item['mid']) {
break;
}
}