forked from mirror/pixelfed
Update ActivityPub Inbox
This commit is contained in:
parent
2078bb10c9
commit
77c056e93b
1 changed files with 11 additions and 12 deletions
|
@ -185,9 +185,7 @@ class Inbox
|
|||
'following_id' => $target->id,
|
||||
'local_profile' => empty($actor->domain)
|
||||
]);
|
||||
if($follower->wasRecentlyCreated == false) {
|
||||
return;
|
||||
}
|
||||
if($follower->wasRecentlyCreated == true) {
|
||||
// send notification
|
||||
Notification::firstOrCreate([
|
||||
'profile_id' => $target->id,
|
||||
|
@ -198,6 +196,7 @@ class Inbox
|
|||
'item_id' => $target->id,
|
||||
'item_type' => 'App\Profile'
|
||||
]);
|
||||
}
|
||||
|
||||
// send Accept to remote profile
|
||||
$accept = [
|
||||
|
|
Loading…
Reference in a new issue