diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-05-12 23:59:26 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-05-13 00:25:21 +0400 |
commit | 7803a85d2ced092fbd8e0f1bde0944bd27f8d649 (patch) | |
tree | 31ad9658fc80921b787ff1d990106731c0040278 /lib/pleroma/bbs/handler.ex | |
parent | c74018e6a7a19a40a75c343ddadc199d9990597e (diff) | |
download | pleroma-7803a85d2ced092fbd8e0f1bde0944bd27f8d649.tar.gz |
Add OpenAPI spec for StatusController
Diffstat (limited to 'lib/pleroma/bbs/handler.ex')
-rw-r--r-- | lib/pleroma/bbs/handler.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/bbs/handler.ex b/lib/pleroma/bbs/handler.ex index c7bc8ef6c..12d64c2fe 100644 --- a/lib/pleroma/bbs/handler.ex +++ b/lib/pleroma/bbs/handler.ex @@ -66,7 +66,7 @@ defmodule Pleroma.BBS.Handler do with %Activity{} <- Activity.get_by_id(activity_id), {:ok, _activity} <- - CommonAPI.post(user, %{"status" => rest, "in_reply_to_status_id" => activity_id}) do + CommonAPI.post(user, %{status: rest, in_reply_to_status_id: activity_id}) do IO.puts("Replied!") else _e -> IO.puts("Could not reply...") @@ -78,7 +78,7 @@ defmodule Pleroma.BBS.Handler do def handle_command(%{user: user} = state, "p " <> text) do text = String.trim(text) - with {:ok, _activity} <- CommonAPI.post(user, %{"status" => text}) do + with {:ok, _activity} <- CommonAPI.post(user, %{status: text}) do IO.puts("Posted!") else _e -> IO.puts("Could not post...") |