BBS: show post ID when posted

This commit is contained in:
duponin 2022-05-22 02:40:56 +02:00
parent fffd9059d6
commit 5951d637a9

View File

@ -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