open up functions in user
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Sun, 24 Jul 2022 16:56:48 +0000 (17:56 +0100)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Sun, 24 Jul 2022 16:56:48 +0000 (17:56 +0100)
lib/pleroma/user.ex
mix.exs

index 9a56261a7301e79d1fbcff41ec286d077f70cb24..275ad950622de860cc267e3938bb1bd3bbb6a997 100644 (file)
@@ -730,12 +730,12 @@ defmodule Pleroma.User 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 @@ defmodule Pleroma.User 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 61521f72edad3ea6d55af7d4b1c9cae377b8d450..ff54c79b4fc08e10297a5bb3d7d8817292114116 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -34,7 +34,7 @@ defmodule Pleroma.Mixfile 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, &copy_files/1, &copy_nginx_config/1],
           config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}]
         ]