From 1fbc54fae6ae40c82d8fae34b14564cc865c25fa Mon Sep 17 00:00:00 2001 From: nobody Date: Thu, 27 May 2021 16:31:31 -0700 Subject: [PATCH] regression --- Zotlabs/Module/Ping.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Zotlabs/Module/Ping.php b/Zotlabs/Module/Ping.php index 7c95b1604..197f829fb 100644 --- a/Zotlabs/Module/Ping.php +++ b/Zotlabs/Module/Ping.php @@ -619,8 +619,9 @@ class Ping extends Controller { } } } - if (! ($vnotify & VNOTIFY_NETWORK)) + if (! ($vnotify & VNOTIFY_NETWORK)) { $result['stream'] = 0; + } if ($vnotify & VNOTIFY_CHANNEL) { $loadtime = get_loadtime('channel'); @@ -635,22 +636,15 @@ class Ping extends Controller { dbesc($ob_hash) ); - if($r) { - $arr = array('items' => $r); - call_hooks('network_ping', $arr); - + if ($r) { foreach ($r as $it) { - if (intval($it['item_wall'])) { - $result['home'] ++; - } - else { - $result['stream'] ++; - } + $result['home'] ++; } } } - if (! ($vnotify & VNOTIFY_CHANNEL)) + if (! ($vnotify & VNOTIFY_CHANNEL)) { $result['home'] = 0; + } if ($vnotify & VNOTIFY_INTRO) {