1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-11-05 21:02:03 +01:00

user: set up a valid followers address to use

This commit is contained in:
William Pitcock 2018-08-06 08:03:00 +00:00
parent 56dc8db582
commit ae3cb652b6

View File

@ -647,6 +647,7 @@ defmodule Pleroma.User do
|> put_change(:ap_id, Pleroma.Web.Endpoint.url()) |> put_change(:ap_id, Pleroma.Web.Endpoint.url())
|> put_change(:nickname, nil) |> put_change(:nickname, nil)
|> put_change(:local, true) |> put_change(:local, true)
|> put_change(:follower_address, Pleroma.Web.Endpoint.url() <> "/relay/followers")
{:ok, user} = Repo.insert(changes) {:ok, user} = Repo.insert(changes)
user user