mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update Inbox, fix undo announce
This commit is contained in:
parent
f21b12d2d5
commit
cf286fb046
1 changed files with 9 additions and 3 deletions
|
@ -114,6 +114,10 @@ class Inbox
|
||||||
$this->handleStoryReplyActivity();
|
$this->handleStoryReplyActivity();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// case 'Update':
|
||||||
|
// (new UpdateActivity($this->payload, $this->profile))->handle();
|
||||||
|
// break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// TODO: decide how to handle invalid verbs.
|
// TODO: decide how to handle invalid verbs.
|
||||||
break;
|
break;
|
||||||
|
@ -688,11 +692,13 @@ class Inbox
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'Announce':
|
case 'Announce':
|
||||||
|
if(is_array($obj) && isset($obj['object'])) {
|
||||||
$obj = $obj['object'];
|
$obj = $obj['object'];
|
||||||
if(!Helpers::validateLocalUrl($obj)) {
|
}
|
||||||
|
if(!is_string($obj) || !Helpers::validateLocalUrl($obj)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$status = Helpers::statusFetch($obj);
|
$status = Status::whereUri($obj)->exists();
|
||||||
if(!$status) {
|
if(!$status) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue