projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
delete activities
[akkoma]
/
lib
/
pleroma
/
web
/
activity_pub
/
object_validators
/
chat_message_validator.ex
diff --git
a/lib/pleroma/web/activity_pub/object_validators/chat_message_validator.ex
b/lib/pleroma/web/activity_pub/object_validators/chat_message_validator.ex
index 1189778f20ff7ef06766f43546e6bdc72c8ee0fa..b153156b031cbe71e77bac71ea725366e5a66434 100644
(file)
--- a/
lib/pleroma/web/activity_pub/object_validators/chat_message_validator.ex
+++ b/
lib/pleroma/web/activity_pub/object_validators/chat_message_validator.ex
@@
-67,7
+67,7
@@
defmodule Pleroma.Web.ActivityPub.ObjectValidators.ChatMessageValidator do
|> cast_embed(:attachment)
end
|> cast_embed(:attachment)
end
- def validate_data(data_cng) do
+ def
p
validate_data(data_cng) do
data_cng
|> validate_inclusion(:type, ["ChatMessage"])
|> validate_required([:id, :actor, :to, :type, :published])
data_cng
|> validate_inclusion(:type, ["ChatMessage"])
|> validate_required([:id, :actor, :to, :type, :published])