]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
First batch of notes for the 2020.03 CHANGELOG
[friendica.git] / src / Model / Item.php
index 319abf6b2a7f432fdb81f85f12719aa7d5e585d9..1205516fa04dd068943c48794c3c903923cf0e91 100644 (file)
@@ -1753,10 +1753,7 @@ class Item
 
                                // Update the contact relations
                                if ($item['author-id'] != $parent['author-id']) {
-                                       $fields = ['cid' => $parent['author-id'], 'relation-cid' => $item['author-id']];
-                                       if (!DBA::exists('contact-relation', $fields)) {
-                                               DBA::insert('contact-relation', $fields, true);
-                                       }
+                                       DBA::update('contact-relation', ['last-interaction' => $item['created']], ['cid' => $parent['author-id'], 'relation-cid' => $item['author-id']], true);
                                }
                        } else {
                                /*