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:
parent
705ea1b975
commit
374f83d29b
2 changed files with 23 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue