forked from GNUsocial/gnu-social
Fix to update user's fullname & homepage only if requested.
This commit is contained in:
parent
fd276ff9e7
commit
6e405facca
@ -115,11 +115,11 @@ class ApiAccountUpdateProfileAction extends ApiAuthAction
|
||||
|
||||
$original = clone($profile);
|
||||
|
||||
if (empty($this->name)) {
|
||||
if (!empty($this->name)) {
|
||||
$profile->fullname = $this->name;
|
||||
}
|
||||
|
||||
if (empty($this->url)) {
|
||||
if (!empty($this->url)) {
|
||||
$profile->homepage = $this->url;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user