forked from mirror/pixelfed
Update AP
This commit is contained in:
parent
ef26fec305
commit
28a1495e9e
2 changed files with 3 additions and 1 deletions
|
@ -420,7 +420,7 @@ class Helpers {
|
||||||
|
|
||||||
$profile = Profile::whereRemoteUrl($res['id'])->first();
|
$profile = Profile::whereRemoteUrl($res['id'])->first();
|
||||||
if(!$profile) {
|
if(!$profile) {
|
||||||
$profile = new Profile;
|
$profile = new Profile();
|
||||||
$profile->domain = $domain;
|
$profile->domain = $domain;
|
||||||
$profile->username = (string) Purify::clean($remoteUsername);
|
$profile->username = (string) Purify::clean($remoteUsername);
|
||||||
$profile->name = Purify::clean($res['name']) ?? 'user';
|
$profile->name = Purify::clean($res['name']) ?? 'user';
|
||||||
|
|
|
@ -274,8 +274,10 @@ class Inbox
|
||||||
if(is_string($obj) && Helpers::validateUrl($obj)) {
|
if(is_string($obj) && Helpers::validateUrl($obj)) {
|
||||||
// actor object detected
|
// actor object detected
|
||||||
// todo delete actor
|
// todo delete actor
|
||||||
|
return;
|
||||||
} else if (Helpers::validateUrl($obj['id']) && Helpers::validateObject($obj) && $obj['type'] == 'Tombstone') {
|
} else if (Helpers::validateUrl($obj['id']) && Helpers::validateObject($obj) && $obj['type'] == 'Tombstone') {
|
||||||
// todo delete status or object
|
// todo delete status or object
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue