Merge pull request #4839 from annando/profile-update
Update the "photo" and "thumb" field in the "profile" table
This commit is contained in:
commit
aa99cab918
1 changed files with 5 additions and 0 deletions
|
@ -220,6 +220,11 @@ class Contact extends BaseObject
|
|||
|
||||
// Update the public contact as well
|
||||
dba::update('contact', $fields, ['uid' => 0, 'nurl' => $self['nurl']]);
|
||||
|
||||
// Update the profile
|
||||
$fields = ['photo' => System::baseUrl() . '/photo/profile/' .$uid . '.jpg',
|
||||
'thumb' => System::baseUrl() . '/photo/avatar/' . $uid .'.jpg'];
|
||||
dba::update('profile', $fields, ['uid' => $uid, 'is-default' => true]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue