mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-24 23:35:23 +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();
|
||||
break;
|
||||
|
||||
// case 'Update':
|
||||
// (new UpdateActivity($this->payload, $this->profile))->handle();
|
||||
// break;
|
||||
|
||||
default:
|
||||
// TODO: decide how to handle invalid verbs.
|
||||
break;
|
||||
|
@ -688,11 +692,13 @@ class Inbox
|
|||
break;
|
||||
|
||||
case 'Announce':
|
||||
if(is_array($obj) && isset($obj['object'])) {
|
||||
$obj = $obj['object'];
|
||||
if(!Helpers::validateLocalUrl($obj)) {
|
||||
}
|
||||
if(!is_string($obj) || !Helpers::validateLocalUrl($obj)) {
|
||||
return;
|
||||
}
|
||||
$status = Helpers::statusFetch($obj);
|
||||
$status = Status::whereUri($obj)->exists();
|
||||
if(!$status) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue