]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #4547 from annando/multiple-accounts
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 4 Mar 2018 22:59:51 +0000 (17:59 -0500)
committerGitHub <noreply@github.com>
Sun, 4 Mar 2018 22:59:51 +0000 (17:59 -0500)
Fix: Multiple accounts per mail address are allowed

include/api.php

index f742d2cb2abd3b1a8ee31c2ce59e4353d852ea23..a7d8ab3ca3a3af8fec7c6b19190f3b41c21473f4 100644 (file)
@@ -5913,10 +5913,12 @@ function api_saved_searches_list($type)
        $result = [];
        while ($term = $terms->fetch()) {
                $result[] = [
-                       'name' => $term['term'],
-                       'query' => $term['term'],
+                       'created_at' => api_date(time()),
+                       'id' => intval($term['id']),
                        'id_str' => $term['id'],
-                       'id' => intval($term['id'])
+                       'name' => $term['term'],
+                       'position' => null,
+                       'query' => $term['term']
                ];
        }