1
0
Fork 0

Added profile picture

This commit is contained in:
Michael 2021-11-16 23:57:12 +00:00
parent 2eca5524e3
commit 2bb1805a67
3 changed files with 7 additions and 7 deletions

View file

@ -128,7 +128,7 @@ class User extends BaseDataTransferObject
$this->favourites_count = 0; $this->favourites_count = 0;
$this->verified = $uid != 0; $this->verified = $uid != 0;
$this->statuses_count = $apcontact['statuses_count'] ?? 0; $this->statuses_count = $apcontact['statuses_count'] ?? 0;
$this->profile_banner_url = ''; $this->profile_banner_url = Contact::getHeaderUrlForId($publicContact['id'], '', $publicContact['updated']);
$this->default_profile = false; $this->default_profile = false;
$this->default_profile_image = false; $this->default_profile_image = false;

View file

@ -46,7 +46,7 @@ class FriendSuggestTest extends MockedTest
'', '',
'', '',
'', '',
new \DateTime('now', new \DateTimeZone('URC')), new \DateTime('now', new \DateTimeZone('UTC')),
28 28
), ),
], ],

View file

@ -226,7 +226,7 @@ class ContactEndpointTest extends FixtureTest
], ],
'description' => '', 'description' => '',
'protected' => false, 'protected' => false,
'verified' => false, 'verified' => true,
'followers_count' => 0, 'followers_count' => 0,
'friends_count' => 0, 'friends_count' => 0,
'listed_count' => 0, 'listed_count' => 0,
@ -234,12 +234,12 @@ class ContactEndpointTest extends FixtureTest
'statuses_count' => 0, 'statuses_count' => 0,
'created_at' => 'Fri Feb 02 00:00:00 +0000 0000', 'created_at' => 'Fri Feb 02 00:00:00 +0000 0000',
'profile_banner_url' => '', 'profile_banner_url' => '',
'profile_image_url_https' => '', 'profile_image_url_https' => 'http://localhost/photo/contact/48/44?ts=-62135596800',
'default_profile' => false, 'default_profile' => false,
'default_profile_image' => false, 'default_profile_image' => false,
'profile_image_url' => '', 'profile_image_url' => 'http://localhost/photo/contact/48/44?ts=-62135596800',
'profile_image_url_profile_size' => '', 'profile_image_url_profile_size' => 'http://localhost/photo/contact/80/44?ts=-62135596800',
'profile_image_url_large' => '', 'profile_image_url_large' => 'http://localhost/photo/contact/1024/44?ts=-62135596800',
'utc_offset' => 0, 'utc_offset' => 0,
'time_zone' => 'UTC', 'time_zone' => 'UTC',
'geo_enabled' => false, 'geo_enabled' => false,