aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-01-29 09:49:53 +0100
committerMario Vavti <mario@mariovavti.com>2019-01-29 09:49:53 +0100
commit0a868b5c279668ab617aedf3eb0b9e9c4fa0b8fe (patch)
treecf7b73edf3160f3359c853c4b3c192b33c7fe35d
parent671b6d2edaa344ef4d41743322e8090265bf8f9a (diff)
parent753f137575674a4fb1cfb16753baced6ed21145a (diff)
downloadvolse-hubzilla-0a868b5c279668ab617aedf3eb0b9e9c4fa0b8fe.tar.gz
volse-hubzilla-0a868b5c279668ab617aedf3eb0b9e9c4fa0b8fe.tar.bz2
volse-hubzilla-0a868b5c279668ab617aedf3eb0b9e9c4fa0b8fe.zip
Merge remote-tracking branch 'mike/master' into dev
-rw-r--r--Zotlabs/Daemon/Notifier.php11
-rw-r--r--Zotlabs/Lib/Libzot.php5
2 files changed, 16 insertions, 0 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index 5ee8843b2..df73d977d 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -679,6 +679,17 @@ class Notifier {
}
$packet_type = (($upstream || $uplink) ? 'response' : 'activity');
+
+ // block zot private reshares from zot6, as this could cause a number of privacy issues
+ // due to parenting differences between the reshare implementations. In zot a reshare is
+ // a standalone parent activity and in zot6 it is a followup/child of the original activity.
+ // For public reshares, some comments to the reshare on the zot fork will not make it to zot6
+ // due to these different message models. This cannot be prevented at this time.
+
+ if($packet_type === 'activity' && $activity['type'] === 'Announce' && intval($target_item['item_private'])) {
+ continue;
+ }
+
$packet = Libzot::build_packet($channel,$packet_type,$zenv,$activity,'activitystreams',(($private) ? $hub['hubloc_sitekey'] : null),$hub['site_crypto']);
}
else {
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index 1440a9691..27502009c 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -1534,6 +1534,11 @@ class Libzot {
// the top level post is unlikely to be imported and
// this is just an exercise in futility.
+
+ if((! get_pconfig($channel['channel_id'],'system','hyperdrive',false)) || (! $arr['verb'] === 'Announce')) {
+ continue;
+ }
+
if((! $relay) && (! $request) && (! $local_public)
&& perm_is_allowed($channel['channel_id'],$sender,'send_stream')) {
self::fetch_conversation($channel,$arr['parent_mid']);