Update ActivityPub Inbox

pull/871/head
Daniel Supernault 2019-02-24 20:17:01 -07:00
rodzic 2078bb10c9
commit 77c056e93b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 11 dodań i 12 usunięć

Wyświetl plik

@ -185,19 +185,18 @@ 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,
'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
$accept = [