open up functions in user

This commit is contained in:
FloatingGhost 2022-07-24 17:56:48 +01:00
parent c4e9c4bc95
commit 516d155558
2 changed files with 4 additions and 4 deletions

View file

@ -730,12 +730,12 @@ def maybe_validate_required_email(changeset, _) do
end end
end end
defp put_ap_id(changeset) do def put_ap_id(changeset) do
ap_id = ap_id(%User{nickname: get_field(changeset, :nickname)}) ap_id = ap_id(%User{nickname: get_field(changeset, :nickname)})
put_change(changeset, :ap_id, ap_id) put_change(changeset, :ap_id, ap_id)
end 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)} user = %User{nickname: get_field(changeset, :nickname)}
followers = ap_followers(user) followers = ap_followers(user)
following = ap_following(user) following = ap_following(user)
@ -2041,7 +2041,7 @@ defp normalize_tags(tags) do
|> Enum.map(&String.downcase/1) |> Enum.map(&String.downcase/1)
end end
defp local_nickname_regex do def local_nickname_regex do
if Config.get([:instance, :extended_nickname_format]) do if Config.get([:instance, :extended_nickname_format]) do
@extended_local_nickname_regex @extended_local_nickname_regex
else else

View file

@ -34,7 +34,7 @@ def project do
releases: [ releases: [
pleroma: [ pleroma: [
include_executables_for: [:unix], 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], steps: [:assemble, &put_otp_version/1, &copy_files/1, &copy_nginx_config/1],
config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}] config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}]
] ]