From 516d1555584f218b0798ed67acec39c126967102 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sun, 24 Jul 2022 17:56:48 +0100 Subject: [PATCH] open up functions in user --- lib/pleroma/user.ex | 6 +++--- mix.exs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 9a56261a7..275ad9506 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -730,12 +730,12 @@ def maybe_validate_required_email(changeset, _) do end end - defp put_ap_id(changeset) do + def put_ap_id(changeset) do ap_id = ap_id(%User{nickname: get_field(changeset, :nickname)}) put_change(changeset, :ap_id, ap_id) end - defp put_following_and_follower_and_featured_address(changeset) do + def put_following_and_follower_and_featured_address(changeset) do user = %User{nickname: get_field(changeset, :nickname)} followers = ap_followers(user) following = ap_following(user) @@ -2041,7 +2041,7 @@ defp normalize_tags(tags) do |> Enum.map(&String.downcase/1) end - defp local_nickname_regex do + def local_nickname_regex do if Config.get([:instance, :extended_nickname_format]) do @extended_local_nickname_regex else diff --git a/mix.exs b/mix.exs index 61521f72e..ff54c79b4 100644 --- a/mix.exs +++ b/mix.exs @@ -34,7 +34,7 @@ def project do releases: [ pleroma: [ include_executables_for: [:unix], - applications: [ex_syslogger: :load, syslog: :load], + applications: [ex_syslogger: :load, syslog: :load, eldap: :transient], steps: [:assemble, &put_otp_version/1, ©_files/1, ©_nginx_config/1], config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}] ]