From: Hypolite Petovan Date: Sun, 30 Dec 2018 06:11:30 +0000 (-0500) Subject: Remove fake private message notifications from ping output X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e9b05bd13f1bf3f74c63202f6f9f9fa2f65f19f1;p=friendica.git Remove fake private message notifications from ping output --- diff --git a/mod/ping.php b/mod/ping.php index 2783b83ddb..18b126cce5 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -275,22 +275,6 @@ function ping_init(App $a) } } - if (DBA::isResult($mails)) { - foreach ($mails as $mail) { - $notif = [ - 'id' => 0, - 'href' => System::baseUrl() . '/message/' . $mail['id'], - 'name' => $mail['from-name'], - 'url' => $mail['from-url'], - 'photo' => $mail['from-photo'], - 'date' => $mail['created'], - 'seen' => false, - 'message' => L10n::t('{0} sent you a message'), - ]; - $notifs[] = $notif; - } - } - if (DBA::isResult($regs)) { foreach ($regs as $reg) { $notif = [ @@ -377,7 +361,7 @@ function ping_init(App $a) if ($format == 'json') { $data['groups'] = $groups_unseen; $data['forums'] = $forums_unseen; - $data['notify'] = $sysnotify_count + $intro_count + $mail_count + $register_count; + $data['notify'] = $sysnotify_count + $intro_count + $register_count; $data['notifications'] = $notifications; $data['sysmsgs'] = [ 'notice' => $sysmsgs,