diff options
author | lain <lain@soykaf.club> | 2020-05-13 09:34:30 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-13 09:34:30 +0000 |
commit | 156c8a508846bd6d4e55f666c4ecc6f0129ac5fc (patch) | |
tree | 971b1b30e5faec06b9971d1f08df20bc95ce8051 /lib/pleroma/bbs/handler.ex | |
parent | 1307d6ca3ca4ebe1ad49ef5c018fb28c2eb44fee (diff) | |
parent | 79ad12064dfd31f135763bae1523a94c493b6aed (diff) | |
download | pleroma-156c8a508846bd6d4e55f666c4ecc6f0129ac5fc.tar.gz |
Merge branch 'openapi/statuses' into 'develop'
Add OpenAPI spec for StatusController
See merge request pleroma/pleroma!2521
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...") |