Update AP Helper

pull/2139/head
Daniel Supernault 5 years ago
parent 5a8d15d84f
commit c2a51c91a6
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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;

Loading…
Cancel
Save