From: Hypolite Petovan Date: Tue, 11 Apr 2017 02:10:05 +0000 (-0400) Subject: Add network for unknown contacts in ACL X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7f2fddea69a942a59c5b707b7b19f3557c636ca8;p=friendica.git Add network for unknown contacts in ACL --- diff --git a/include/acl_selectors.php b/include/acl_selectors.php index 8404c8f4b6..2a435c8e74 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -615,7 +615,7 @@ function acl_lookup(App $a, $out_type = 'json') { function _contact_link($i){ return dbesc($i['link']); } $known_contacts = array_map(_contact_link, $contacts); $unknow_contacts=array(); - $r = q("SELECT `author-avatar`,`author-name`,`author-link` + $r = q("SELECT `author-avatar`,`author-name`,`author-link`, `network` FROM `item` WHERE `parent` = %d AND (`author-name` LIKE '%%%s%%' OR `author-link` LIKE '%%%s%%') AND `author-link` NOT IN ('%s') @@ -640,7 +640,7 @@ function acl_lookup(App $a, $out_type = 'json') { 'photo' => proxy_url($row['author-avatar'], false, PROXY_SIZE_MICRO), 'name' => htmlentities($row['author-name']), 'id' => '', - 'network' => 'unknown', + 'network' => $row['network'], 'link' => $row['author-link'], 'nick' => htmlentities($nick), 'forum' => false