mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
Update the name in the "self" contact when it is changed.
This commit is contained in:
parent
4689f44819
commit
6800b07fc5
1 changed files with 2 additions and 1 deletions
|
@ -470,7 +470,8 @@ function profiles_post(&$a) {
|
|||
|
||||
|
||||
if($namechanged && $is_default) {
|
||||
$r = q("UPDATE `contact` SET `name-date` = '%s' WHERE `self` = 1 AND `uid` = %d",
|
||||
$r = q("UPDATE `contact` SET `name` = '%s', `name-date` = '%s' WHERE `self` = 1 AND `uid` = %d",
|
||||
dbesc($name),
|
||||
dbesc(datetime_convert()),
|
||||
intval(local_user())
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue