Make new users follow themselves.

This commit is contained in:
Roger Braun 2017-04-14 17:29:27 +02:00
parent 03ddaead7e
commit 8c2aad1cab

View file

@ -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