diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-09-28 01:21:28 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-09-28 01:53:41 +0200 |
commit | 9202904da9b48eb2a3884b8e89ea879e01d44b9a (patch) | |
tree | 8bf4e414c478469b20095b6db108c0eb96b8af68 /lib | |
parent | a0f42ecbca7d1aabc0fb699084865231e32ec6d9 (diff) | |
download | pleroma-9202904da9b48eb2a3884b8e89ea879e01d44b9a.tar.gz |
status_controller.ex: Posting media status without content defined
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/controllers/status_controller.ex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/controllers/status_controller.ex b/lib/pleroma/web/mastodon_api/controllers/status_controller.ex index f7da10289..ae3d51575 100644 --- a/lib/pleroma/web/mastodon_api/controllers/status_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/status_controller.ex @@ -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), |