summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorduponin <pwet@dupon.in>2022-05-22 02:40:56 +0200
committerduponin <pwet@dupon.in>2022-05-22 02:40:56 +0200
commit5951d637a98402ad0e1d11d220c9374fc02d5bcd (patch)
treed8402c7c1d3347778d84adfb027fdf5deeb40966 /lib
parentfffd9059d67fb719c38dc014de1fa750dd5be8b4 (diff)
downloadpleroma-5951d637a98402ad0e1d11d220c9374fc02d5bcd.tar.gz
pleroma-5951d637a98402ad0e1d11d220c9374fc02d5bcd.zip
BBS: show post ID when posted
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/bbs/handler.ex4
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