status_controller.ex: Posting media status without content defined
This commit is contained in:
parent
a0f42ecbca
commit
9202904da9
2 changed files with 6 additions and 3 deletions
|
|
@ -103,6 +103,10 @@ defmodule Pleroma.Web.MastodonAPI.StatusController do
|
|||
end
|
||||
end
|
||||
|
||||
def create(%{assigns: %{user: _user}} = conn, %{"media_ids" => _} = params) do
|
||||
create(conn, Map.put(params, "status", ""))
|
||||
end
|
||||
|
||||
@doc "GET /api/v1/statuses/:id"
|
||||
def show(%{assigns: %{user: user}} = conn, %{"id" => id}) do
|
||||
with %Activity{} = activity <- Activity.get_by_id_with_object(id),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue