logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 06fc196772a967a44593a10ceaf00396ce6b8de3
parent 6e3267d1bd5494c8eec7a1b53062f1b51cebf5d6
Author: Lain Soykaf <lain@lain.com>
Date:   Sun, 10 Dec 2023 19:46:25 +0400

Backup: Fix config

Diffstat:

Mconfig/test.exs2+-
Mlib/pleroma/user/backup.ex2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/test.exs b/config/test.exs @@ -146,7 +146,7 @@ config :pleroma, :config_impl, Pleroma.UnstubbedConfigMock config :pleroma, Pleroma.PromEx, disabled: true # Mox definitions. Only read during compile time. -Application.put_env(Pleroma.User.Backup, :config_impl, Pleroma.UnstubbedConfigMock) +config :pleroma, Pleroma.User.Backup, config_impl: Pleroma.UnstubbedConfigMock if File.exists?("./config/test.secret.exs") do import_config "test.secret.exs" diff --git a/lib/pleroma/user/backup.ex b/lib/pleroma/user/backup.ex @@ -35,7 +35,7 @@ defmodule Pleroma.User.Backup do timestamps() end - @config_impl Application.compile_env(__MODULE__, :config_impl, Pleroma.Config) + @config_impl Application.compile_env(:pleroma, [__MODULE__, :config_impl], Pleroma.Config) def create(user, admin_id \\ nil) do with :ok <- validate_limit(user, admin_id),