X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fping.php;h=69aef1bf3fd54bda79b04c9c8213e7e54e8d1c74;hb=2a442952b69987d578288891c064b0fed0369086;hp=61a12a0128ef2e98fe3f772f5ec3b6e71cbde71e;hpb=fc283ab92858238a5a55f24b1d1650bb72068b7d;p=friendica.git diff --git a/mod/ping.php b/mod/ping.php index 61a12a0128..69aef1bf3f 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -193,7 +193,7 @@ function ping_init(App $a) $intro_count = count($intros1) + count($intros2); $intros = $intros1 + $intros2; - $myurl = DI::baseUrl() . '/profile/' . $a->getNickname(); + $myurl = DI::baseUrl() . '/profile/' . $a->getLoggedInUserNickname(); $mails = q( "SELECT `id`, `from-name`, `from-url`, `from-photo`, `created` FROM `mail` WHERE `uid` = %d AND `seen` = 0 AND `from-url` != '%s' ", @@ -459,13 +459,13 @@ function ping_get_notifications($uid) if ($notification["visible"] && !$notification["deleted"] - && empty($result[$notification['parent']]) + && empty($result['p:' . $notification['parent']]) ) { // Should we condense the notifications or show them all? - if (DI::pConfig()->get(local_user(), 'system', 'detailed_notif')) { - $result[$notification["id"]] = $notification; + if (($notification['verb'] != Activity::POST) || DI::pConfig()->get(local_user(), 'system', 'detailed_notif')) { + $result[] = $notification; } else { - $result[$notification['parent']] = $notification; + $result['p:' . $notification['parent']] = $notification; } } }