kopia lustrzana https://github.com/nextcloud/social
set avatar
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>fix/noid/avatar-2
rodzic
5f0383fe7d
commit
5c22cff5a9
|
@ -697,6 +697,12 @@ class Person extends ACore implements IQueryRow, JsonSerializable {
|
|||
->setFeatured($this->validate(self::AS_URL, 'featured', $data, ''))
|
||||
->setDetailsAll($this->getArray('details', $data, []));
|
||||
|
||||
if ($this->hasIcon()) {
|
||||
$this->setAvatar($this->getIcon()->getUrl());
|
||||
} else {
|
||||
$this->setAvatar($this->getAvatar());
|
||||
}
|
||||
|
||||
try {
|
||||
$cTime = new DateTime($this->get('creation', $data, 'yesterday'));
|
||||
$this->setCreation($cTime->getTimestamp());
|
||||
|
|
Ładowanie…
Reference in New Issue