의 미러
https://github.com/friendica/friendica
synced 2025-09-07 21:21:52 +02:00
Avoid overwriting of avatars for feeds
This commit is contained in:
부모
96651ae76d
커밋
8838a1f2d1
1개의 변경된 파일과 4개의 추가작업 그리고 2개의 파일을 삭제
|
@ -1452,7 +1452,7 @@ class Contact extends BaseObject
|
|||
}
|
||||
}
|
||||
|
||||
if (!empty($data['photo'])) {
|
||||
if (!empty($data['photo']) && ($data['network'] != Protocol::FEED)) {
|
||||
self::updateAvatar($data['photo'], $uid, $contact_id);
|
||||
}
|
||||
|
||||
|
@ -1854,7 +1854,9 @@ class Contact extends BaseObject
|
|||
}
|
||||
}
|
||||
|
||||
self::updateAvatar($ret['photo'], $uid, $id, $update || $force);
|
||||
if ($ret['network'] != Protocol::FEED) {
|
||||
self::updateAvatar($ret['photo'], $uid, $id, $update || $force);
|
||||
}
|
||||
|
||||
if (!$update) {
|
||||
if ($force && ($uid == 0)) {
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue