1
0
Fork 0
forked from mirror/pixelfed

Update AP Helper

This commit is contained in:
Daniel Supernault 2020-04-21 23:01:04 -06:00
parent 5a8d15d84f
commit c2a51c91a6
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -416,7 +416,7 @@ class Helpers {
if(!$profile) {
$profile = new Profile();
$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->bio = isset($res['summary']) ? Purify::clean($res['summary']) : null;
$profile->sharedInbox = isset($res['endpoints']) && isset($res['endpoints']['sharedInbox']) ? $res['endpoints']['sharedInbox'] : null;