mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 21:13:16 +00:00
Update ap inbox
This commit is contained in:
parent
a1eb11b910
commit
3d1c2a4acf
1 changed files with 17 additions and 2 deletions
|
@ -307,10 +307,20 @@ class Inbox
|
|||
{
|
||||
$activity = $this->payload['object'];
|
||||
$actor = $this->actorFirstOrCreate($this->payload['actor']);
|
||||
|
||||
if(!$actor) {
|
||||
return;
|
||||
}
|
||||
|
||||
$status = Helpers::statusFetch($activity['inReplyTo']);
|
||||
|
||||
if(!$status) {
|
||||
return;
|
||||
}
|
||||
|
||||
$poll = $status->poll;
|
||||
|
||||
if(!$status || !$poll) {
|
||||
if(!$poll) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -486,9 +496,14 @@ class Inbox
|
|||
{
|
||||
$actor = $this->actorFirstOrCreate($this->payload['actor']);
|
||||
$target = $this->actorFirstOrCreate($this->payload['object']);
|
||||
if(!$actor || $actor->domain == null || $target->domain !== null) {
|
||||
if(!$actor || !$target) {
|
||||
return;
|
||||
}
|
||||
|
||||
if($actor->domain == null || $target->domain !== null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(
|
||||
Follower::whereProfileId($actor->id)
|
||||
->whereFollowingId($target->id)
|
||||
|
|
Loading…
Reference in a new issue