]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/DFRN.php
New fields in contact table / don't update on probe
[friendica.git] / src / Protocol / DFRN.php
index a5deb490b09de23f4fdbcfaa5af5ecceac27412c..4c5f20c63eefb16d3c1ad971d535b0c6f8f8d318 100644 (file)
@@ -1742,6 +1742,11 @@ class DFRN
                                (strtotime($contact['avatar-date']) > strtotime($contact_old['avatar-date']) || ($author['avatar'] != $contact_old['avatar']))
                        );
 
+                       // Update the "hidden" status in the public contact
+                       // @todo Updating the contact with all fields and update the gcontact from that
+                       $condition = ['uid' => 0, 'nurl' => Strings::normaliseLink($contact_old['url'])];
+                       DBA::update('contact', ['unsearchable' => $hide], $condition, true);
+
                        /*
                         * The generation is a sign for the reliability of the provided data.
                         * It is used in the socgraph.php to prevent that old contact data