diff options
author | duponin <pwet@dupon.in> | 2022-05-22 02:40:56 +0200 |
---|---|---|
committer | duponin <pwet@dupon.in> | 2022-05-22 02:40:56 +0200 |
commit | 5951d637a98402ad0e1d11d220c9374fc02d5bcd (patch) | |
tree | d8402c7c1d3347778d84adfb027fdf5deeb40966 | |
parent | fffd9059d67fb719c38dc014de1fa750dd5be8b4 (diff) | |
download | pleroma-5951d637a98402ad0e1d11d220c9374fc02d5bcd.tar.gz pleroma-5951d637a98402ad0e1d11d220c9374fc02d5bcd.zip |
BBS: show post ID when posted
-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 631307f02..fecabb878 100644 --- a/lib/pleroma/bbs/handler.ex +++ b/lib/pleroma/bbs/handler.ex @@ -159,8 +159,8 @@ 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 - IO.puts("Posted!") + with {:ok, activity} <- CommonAPI.post(user, %{status: text}) do + IO.puts("Posted! ID: #{activity.id}") else _e -> IO.puts("Could not post...") end |