Add PUT /api/pleroma/notification_settings endpoint
This commit is contained in:
parent
55d086b520
commit
cd90695a34
9 changed files with 95 additions and 16 deletions
|
|
@ -269,6 +269,12 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
|
|||
json(conn, Enum.into(Emoji.get_all(), %{}))
|
||||
end
|
||||
|
||||
def update_notificaton_settings(%{assigns: %{user: user}} = conn, params) do
|
||||
with {:ok, _} <- User.update_notification_settings(user, params) do
|
||||
json(conn, %{status: "success"})
|
||||
end
|
||||
end
|
||||
|
||||
def follow_import(conn, %{"list" => %Plug.Upload{} = listfile}) do
|
||||
follow_import(conn, %{"list" => File.read!(listfile.path)})
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue