의 미러
https://github.com/friendica/friendica
synced 2025-09-07 21:21:52 +02:00
Update the "photo" and "thumb" field in the "profile" table
This commit is contained in:
부모
ca614db66a
커밋
a53f01bacc
1개의 변경된 파일과 5개의 추가작업 그리고 0개의 파일을 삭제
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue