X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FContact.php;h=feeb040acc909246094dca2793a6a4f0e5608403;hb=28eb5d57a72aae22428061b26b90195f7feacadf;hp=9307bfdded5ae5e3399f44f750626f5fcd33a387;hpb=a47e1e13d72015d38dc6c45619aee8c0d13fd557;p=friendica.git diff --git a/include/Contact.php b/include/Contact.php index 9307bfdded..feeb040acc 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -625,7 +625,7 @@ function get_contact($url, $uid = 0, $no_update = false) { update_contact_avatar($data["photo"], $uid, $contact_id); - $contact = dba::select('contact', array('addr', 'alias', 'name', 'nick', 'avatar-date'), + $contact = dba::select('contact', array('addr', 'alias', 'name', 'nick', 'keywords', 'location', 'about', 'avatar-date'), array('id' => $contact_id), array('limit' => 1)); // This condition should always be true @@ -638,6 +638,16 @@ function get_contact($url, $uid = 0, $no_update = false) { 'name' => $data['name'], 'nick' => $data['nick']); + if ($data['keywords'] != '') { + $updated['keywords'] = $data['keywords']; + } + if ($data['location'] != '') { + $updated['location'] = $data['location']; + } + if ($data['about'] != '') { + $updated['about'] = $data['about']; + } + if (($data["addr"] != $contact["addr"]) || ($data["alias"] != $contact["alias"])) { $updated['uri-date'] = datetime_convert(); }