|
|
@ -185,9 +185,7 @@ class Inbox
|
|
|
|
'following_id' => $target->id,
|
|
|
|
'following_id' => $target->id,
|
|
|
|
'local_profile' => empty($actor->domain)
|
|
|
|
'local_profile' => empty($actor->domain)
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
if($follower->wasRecentlyCreated == false) {
|
|
|
|
if($follower->wasRecentlyCreated == true) {
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// send notification
|
|
|
|
// send notification
|
|
|
|
Notification::firstOrCreate([
|
|
|
|
Notification::firstOrCreate([
|
|
|
|
'profile_id' => $target->id,
|
|
|
|
'profile_id' => $target->id,
|
|
|
@ -198,6 +196,7 @@ class Inbox
|
|
|
|
'item_id' => $target->id,
|
|
|
|
'item_id' => $target->id,
|
|
|
|
'item_type' => 'App\Profile'
|
|
|
|
'item_type' => 'App\Profile'
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// send Accept to remote profile
|
|
|
|
// send Accept to remote profile
|
|
|
|
$accept = [
|
|
|
|
$accept = [
|
|
|
|