Fix noscrape publishing and pulling, added header

This commit is contained in:
Michael 2021-06-17 11:23:32 +00:00
parent 5419d1d426
commit fe07dc828b
16 changed files with 36 additions and 28 deletions

View file

@ -114,9 +114,8 @@ class Account extends BaseDataTransferObject
$this->url = $publicContact['url'];
$this->avatar = $userContact['avatar'] ?? $publicContact['avatar'];
$this->avatar_static = $userContact['avatar'] ?? $publicContact['avatar'];
// No header picture in Friendica
$this->header = '';
$this->header_static = '';
$this->header = ($userContact['header'] ?? $publicContact['header']) ?? '';
$this->header_static = ($userContact['header'] ?? $publicContact['header']) ?? '';
$this->followers_count = $apcontact['followers_count'] ?? 0;
$this->following_count = $apcontact['following_count'] ?? 0;
$this->statuses_count = $apcontact['statuses_count'] ?? 0;