mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Also fix orderByRaw in SeedFollows
This commit is contained in:
parent
11447c13da
commit
efbb1017e7
1 changed files with 3 additions and 3 deletions
|
@ -43,8 +43,8 @@ class SeedFollows extends Command
|
||||||
|
|
||||||
for ($i=0; $i < $limit; $i++) {
|
for ($i=0; $i < $limit; $i++) {
|
||||||
try {
|
try {
|
||||||
$actor = Profile::orderByRaw('rand()')->firstOrFail();
|
$actor = Profile::inRandomOrder()->firstOrFail();
|
||||||
$target = Profile::orderByRaw('rand()')->firstOrFail();
|
$target = Profile::inRandomOrder()->firstOrFail();
|
||||||
|
|
||||||
$follow = new Follower;
|
$follow = new Follower;
|
||||||
$follow->profile_id = $actor->id;
|
$follow->profile_id = $actor->id;
|
||||||
|
|
Loading…
Reference in a new issue