diff --git a/app/Console/Commands/SeedFollows.php b/app/Console/Commands/SeedFollows.php new file mode 100644 index 000000000..81f23fabb --- /dev/null +++ b/app/Console/Commands/SeedFollows.php @@ -0,0 +1,60 @@ +firstOrFail(); + $target = Profile::orderByRaw('rand()')->firstOrFail(); + + $follow = new Follower; + $follow->profile_id = $actor->id; + $follow->following_id = $target->id; + $follow->save(); + + FollowPipeline::dispatch($follow); + } catch (Exception $e) { + continue; + } + } + } +}