diff options
-rw-r--r-- | lib/mix/pleroma.ex | 3 | ||||
-rw-r--r-- | lib/mix/tasks/pleroma/database.ex | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lib/mix/pleroma.ex b/lib/mix/pleroma.ex index 7fa3d6bf6..6c2688b3c 100644 --- a/lib/mix/pleroma.ex +++ b/lib/mix/pleroma.ex @@ -39,8 +39,7 @@ defmodule Mix.Pleroma do Pleroma.Repo, Supervisor.child_spec({Task, &Pleroma.Config.Environment.load_and_update/0}, id: :update_env - ), - Pleroma.Web.Endpoint + ) ] children = diff --git a/lib/mix/tasks/pleroma/database.ex b/lib/mix/tasks/pleroma/database.ex index a01c36ece..ff47e9813 100644 --- a/lib/mix/tasks/pleroma/database.ex +++ b/lib/mix/tasks/pleroma/database.ex @@ -83,7 +83,11 @@ defmodule Mix.Tasks.Pleroma.Database do ), where: o.inserted_at < ^time_deadline, where: - fragment("split_part(?->>'actor', '/', 3) != ?", o.data, ^Pleroma.Web.Endpoint.host()) + fragment( + "split_part(?->>'actor', '/', 3) != ?", + o.data, + ^Pleroma.Config.get([Pleroma.Web.Endpoint, :url, :host]) + ) ) |> Repo.delete_all(timeout: :infinity) |