From 8c2aad1cabfc708084585a4f4afdccc481657d0e Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Fri, 14 Apr 2017 17:29:27 +0200 Subject: [PATCH] Make new users follow themselves. --- lib/mix/tasks/register_user.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mix/tasks/register_user.ex b/lib/mix/tasks/register_user.ex index e2f36c34c..17535f190 100644 --- a/lib/mix/tasks/register_user.ex +++ b/lib/mix/tasks/register_user.ex @@ -14,7 +14,7 @@ defmodule Mix.Tasks.RegisterUser do bio: bio } - user = %{ user | ap_id: User.ap_id(user) } + user = %{ user | ap_id: User.ap_id(user), following: User.ap_followers(user) } Repo.insert!(user) end -- 2.45.2