Update ActivityPub Inbox

pull/871/head
Daniel Supernault 6 years ago
parent 2078bb10c9
commit 77c056e93b
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -185,19 +185,18 @@ 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
Notification::firstOrCreate([
'profile_id' => $target->id,
'actor_id' => $actor->id,
'action' => 'follow',
'message' => $follower->toText(),
'rendered' => $follower->toHtml(),
'item_id' => $target->id,
'item_type' => 'App\Profile'
]);
} }
// send notification
Notification::firstOrCreate([
'profile_id' => $target->id,
'actor_id' => $actor->id,
'action' => 'follow',
'message' => $follower->toText(),
'rendered' => $follower->toHtml(),
'item_id' => $target->id,
'item_type' => 'App\Profile'
]);
// send Accept to remote profile // send Accept to remote profile
$accept = [ $accept = [

Loading…
Cancel
Save