[#114] Removed email_invite implementation (to be addressed separately).
This commit is contained in:
parent
00744c6b03
commit
18b9467d1a
2 changed files with 1 additions and 39 deletions
|
|
@ -335,13 +335,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
|
|||
|
||||
def confirm_email(_conn, _params), do: :noop
|
||||
|
||||
def email_invite(%{assigns: %{user: user}} = conn, %{"email" => email} = params) do
|
||||
with true <- Pleroma.Config.get([:instance, :invites_enabled]),
|
||||
email <- Pleroma.UserEmail.user_invitation_email(user, email, params["name"]),
|
||||
{:ok, _} <- Pleroma.Mailer.deliver(email) do
|
||||
json_response(conn, :no_content, "")
|
||||
end
|
||||
end
|
||||
def email_invite(_conn, _params), do: :noop
|
||||
|
||||
def update_avatar(%{assigns: %{user: user}} = conn, params) do
|
||||
{:ok, object} = ActivityPub.upload(params, type: :avatar)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue