diff options
author | Mario <mario@mariovavti.com> | 2022-06-01 07:00:21 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-06-01 07:00:21 +0000 |
commit | e63f0438415bb364f3085286ca2f199e83ab187b (patch) | |
tree | b107429276ebfc92dc9b4f78e302a4967e5bf0a6 /Zotlabs/Lib/Libzot.php | |
parent | c5f33baf27d80e2a7ad7307eacd3137609eeb089 (diff) | |
parent | 33dd0c83e377b8adf00559337d13784ec136cecb (diff) | |
download | volse-hubzilla-7.4.tar.gz volse-hubzilla-7.4.tar.bz2 volse-hubzilla-7.4.zip |
Merge branch '7.4RC'7.4
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 379b329c7..8eb5ce647 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -1627,7 +1627,7 @@ class Libzot { // doesn't exist. if ($perm === 'send_stream') { - if ($force || get_pconfig($channel['channel_id'], 'system', 'hyperdrive', false) || $arr['verb'] === ACTIVITY_SHARE) { + if ($force || get_pconfig($channel['channel_id'], 'system', 'hyperdrive', false)) { $allowed = true; } } @@ -1673,6 +1673,10 @@ class Libzot { $DR->update('comment parent not found'); $result[] = $DR->get(); + if ($relay || $request || $local_public) { + continue; + } + // We don't seem to have a copy of this conversation or at least the parent // - so request a copy of the entire conversation to date. // Don't do this if it's a relay post as we're the ones who are supposed to @@ -1684,10 +1688,10 @@ class Libzot { // the top level post is unlikely to be imported and // this is just an exercise in futility. - if ((!$relay) && (!$request) && (!$local_public) - && perm_is_allowed($channel['channel_id'], $sender, 'send_stream')) { + if (perm_is_allowed($channel['channel_id'], $sender, 'send_stream')) { self::fetch_conversation($channel, $arr['parent_mid']); } + continue; } |