question_validator: Allow content to be an empty-string (blank)
This commit is contained in:
parent
ac2598307d
commit
0f088d8ce3
2 changed files with 10 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.QuestionValidator do
|
|||
def validate_data(data_cng) do
|
||||
data_cng
|
||||
|> validate_inclusion(:type, ["Question"])
|
||||
|> validate_required([:id, :actor, :attributedTo, :type, :content, :context])
|
||||
|> validate_required([:id, :actor, :attributedTo, :type, :context])
|
||||
|> CommonValidations.validate_any_presence([:cc, :to])
|
||||
|> CommonValidations.validate_fields_match([:actor, :attributedTo])
|
||||
|> CommonValidations.validate_actor_is_active()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue