mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 09:17:03 +00:00
Update AP Helper
This commit is contained in:
parent
5a8d15d84f
commit
c2a51c91a6
1 changed files with 1 additions and 1 deletions
|
@ -416,7 +416,7 @@ class Helpers {
|
||||||
if(!$profile) {
|
if(!$profile) {
|
||||||
$profile = new Profile();
|
$profile = new Profile();
|
||||||
$profile->domain = strtolower($domain);
|
$profile->domain = strtolower($domain);
|
||||||
$profile->username = strtolower(Purify::clean($remoteUsername));
|
$profile->username = strtolower(Purify::clean($webfinger));
|
||||||
$profile->name = isset($res['name']) ? Purify::clean($res['name']) : 'user';
|
$profile->name = isset($res['name']) ? Purify::clean($res['name']) : 'user';
|
||||||
$profile->bio = isset($res['summary']) ? Purify::clean($res['summary']) : null;
|
$profile->bio = isset($res['summary']) ? Purify::clean($res['summary']) : null;
|
||||||
$profile->sharedInbox = isset($res['endpoints']) && isset($res['endpoints']['sharedInbox']) ? $res['endpoints']['sharedInbox'] : null;
|
$profile->sharedInbox = isset($res['endpoints']) && isset($res['endpoints']['sharedInbox']) ? $res['endpoints']['sharedInbox'] : null;
|
||||||
|
|
Loading…
Reference in a new issue