Update Inbox

This commit is contained in:
Daniel Supernault 2019-08-12 19:26:57 -06:00
parent b86a9d9524
commit 92c2fcaca7
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -274,10 +274,10 @@ class Inbox
return; return;
} }
$follower = new Follower(); $follower = Follower::firstOrCreate([
$follower->profile_id = $actor->id; 'profile_id' => $actor->id,
$follower->following_id = $target->id; 'following_id' => $target->id,
$follower->save(); ]);
FollowPipeline::dispatch($follower); FollowPipeline::dispatch($follower);
$request->delete(); $request->delete();