From 68916689de86eabde434aaf1349aab0ca32a3b00 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 28 Nov 2015 23:35:02 +0100 Subject: [PATCH] Introductions are now added as well --- mod/manage.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod/manage.php b/mod/manage.php index 3f2023b7e..adcc3d787 100644 --- a/mod/manage.php +++ b/mod/manage.php @@ -127,6 +127,11 @@ function manage_content(&$a) { if ($r) $notifications = $notifications + sizeof($r); + $r = q("SELECT COUNT(*) AS `introductions` FROM `intro` WHERE NOT `blocked` AND NOT `ignore` AND `uid` = %d", + intval($id['uid'])); + if ($r) + $notifications = $notifications + $r[0]["introductions"]; + $identities[$key]['notifications'] = $notifications; }