ObjectValidators: accept "quoteUrl" field

This commit is contained in:
Alex Gleason 2022-01-22 16:41:30 -06:00 committed by tusooa
parent a94cf2ad4f
commit 31eb3dc245
No known key found for this signature in database
GPG key ID: 42AEC43D48433C51

View file

@ -27,7 +27,7 @@ defmacro activity_fields do
end
end
# All objects except Answer and CHatMessage
# All objects except Answer and ChatMessage
defmacro object_fields do
quote bind_quoted: binding() do
field(:content, :string)
@ -58,6 +58,7 @@ defmacro status_object_fields do
field(:like_count, :integer, default: 0)
field(:announcement_count, :integer, default: 0)
field(:inReplyTo, ObjectValidators.ObjectID)
field(:quoteUrl, ObjectValidators.ObjectID)
field(:url, ObjectValidators.BareUri)
field(:likes, {:array, ObjectValidators.ObjectID}, default: [])