From d4198223bc1fd06e9b9fe969edb5d03811889def Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 25 Jan 2021 21:52:17 +0100 Subject: invoke channel discovery by hash instead of address and add thread listeners only if we also send them the post --- Zotlabs/Module/Channel.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Zotlabs/Module/Channel.php') diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php index fe7341e52..11f4d3a52 100644 --- a/Zotlabs/Module/Channel.php +++ b/Zotlabs/Module/Channel.php @@ -73,7 +73,7 @@ class Channel extends Controller { } } else { - $data = json_encode(Libzot::zotinfo([ 'address' => $channel['channel_address'] ])); + $data = json_encode(Libzot::zotinfo([ 'guid_hash' => $channel['channel_hash'] ])); } $headers = [ @@ -87,7 +87,6 @@ class Channel extends Controller { killme(); } - if((local_channel()) && (argc() > 2) && (argv(2) === 'view')) { $which = $channel['channel_address']; $profile = argv(1); -- cgit v1.2.3