]> git.mxchange.org Git - friendica.git/commitdiff
fetch new FSuggest after update
authorPhilipp <admin@philipp.info>
Sat, 23 Oct 2021 13:47:07 +0000 (15:47 +0200)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 24 Oct 2021 01:45:38 +0000 (21:45 -0400)
src/Contact/FriendSuggest/Repository/FriendSuggest.php

index b83729922435deaa5e9ea39460ad6cad03f5d98f..dd607edccc87d1a6bd08bcc4e8acd43ca19b31f7 100644 (file)
@@ -130,7 +130,7 @@ class FriendSuggest extends BaseRepository
 
                        if ($fsuggest->id) {
                                $this->db->update(self::$table_name, $fields, ['id' => $fsuggest->id]);
-                               return $this->factory->createFromTableRow($fields);
+                               return $this->selectOneById($fsuggest->id);
                        } else {
                                $this->db->insert(self::$table_name, $fields);
                                return $this->selectOneById($this->db->lastInsertId());
@@ -141,7 +141,7 @@ class FriendSuggest extends BaseRepository
        }
 
        /**
-        * @param Collection\FriendSuggest $fsuggests
+        * @param Collection\FriendSuggests $fsuggests
         *
         * @return bool
         *