Don't show deleted contacts, changed "pending" behaviour

This commit is contained in:
Michael 2019-01-12 13:28:14 +00:00
parent cd3ab5ddc9
commit 28f14c7d60
6 changed files with 23 additions and 16 deletions

View file

@ -137,7 +137,7 @@ class Widget
$extra_sql = self::unavailableNetworks();
$r = DBA::p("SELECT DISTINCT(`network`) FROM `contact` WHERE `uid` = ? AND `network` != '' $extra_sql ORDER BY `network`",
$r = DBA::p("SELECT DISTINCT(`network`) FROM `contact` WHERE `uid` = ? AND NOT `deleted` AND `network` != '' $extra_sql ORDER BY `network`",
local_user()
);