diff options
author | rinpatch <rinpatch@sdf.org> | 2019-09-28 01:56:20 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-09-28 01:58:06 +0300 |
commit | 374f83d29b5793d75a3a6be7c18cf52cfed42b64 (patch) | |
tree | 6f5dda6e1fe52b5de220a438ac2d69c9f4cae053 /lib | |
parent | 705ea1b975779180c15d7b32d22f7fb9a11b2ed9 (diff) | |
download | pleroma-374f83d29b5793d75a3a6be7c18cf52cfed42b64.tar.gz |
Fix not being able to post empty statuses with attachments
Attachment field was filled in after the empty status check
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/common_api/activity_draft.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/activity_draft.ex b/lib/pleroma/web/common_api/activity_draft.ex index aa7c8c381..f7da81b34 100644 --- a/lib/pleroma/web/common_api/activity_draft.ex +++ b/lib/pleroma/web/common_api/activity_draft.ex @@ -40,11 +40,11 @@ defmodule Pleroma.Web.CommonAPI.ActivityDraft do |> put_params(params) |> status() |> summary() + |> with_valid(&attachments/1) |> full_payload() |> expires_at() |> poll() |> with_valid(&in_reply_to/1) - |> with_valid(&attachments/1) |> with_valid(&in_reply_to_conversation/1) |> with_valid(&visibility/1) |> content() |