]> git.mxchange.org Git - friendica.git/blobdiff - include/acl_selectors.php
rework autocomplete: space after inserting contact without id
[friendica.git] / include / acl_selectors.php
index 99848aa1934567683ac4fadd57b17ea08a7d7375..65f125b852e69a4668e124225ecc103c4f63d4c7 100644 (file)
@@ -6,7 +6,7 @@
 
 require_once("include/contact_selectors.php");
 require_once("include/contact_widgets.php");
-require_once("include/dir_fns.php");
+require_once("include/DirSearch.php");
 require_once("include/features.php");
 require_once("mod/proxy.php");
 
@@ -556,7 +556,7 @@ function acl_lookup(&$a, $out_type = 'json') {
                if($r) {
                        foreach($r as $g) {
                                $contacts[] = array(
-                                       "photo"    => $g['photo'],
+                                       "photo"    => proxy_url($g['photo'], false, PROXY_SIZE_MICRO),
                                        "name"     => $g['name'],
                                        "nick"     => (x($g['addr']) ? $g['addr'] : $g['url']),
                                        "network" => $g['network'],
@@ -663,7 +663,7 @@ function acl_lookup(&$a, $out_type = 'json') {
  * @brief Searching for global contacts for autocompletion
  * 
  * @param App $a
- * @return array
+ * @return array with the search results
  */
 function navbar_complete(&$a) {
 
@@ -687,7 +687,7 @@ function navbar_complete(&$a) {
                $search = substr($search,1);
 
        if($localsearch) {
-               $x = dir::global_search_by_name($search, $mode);
+               $x = DirSearch::global_search_by_name($search, $mode);
                return $x;
        }
 
@@ -704,4 +704,4 @@ function navbar_complete(&$a) {
                }
        }
        return;
-}
\ No newline at end of file
+}