Fix not being able to post empty statuses with attachments

Attachment field was filled in after the empty status check
This commit is contained in:
rinpatch 2019-09-28 01:56:20 +03:00
commit 374f83d29b
2 changed files with 23 additions and 1 deletions

View file

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