projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
object_validators: Mark validate_data as private
[akkoma]
/
lib
/
pleroma
/
web
/
activity_pub
/
object_validators
/
create_chat_message_validator.ex
diff --git
a/lib/pleroma/web/activity_pub/object_validators/create_chat_message_validator.ex
b/lib/pleroma/web/activity_pub/object_validators/create_chat_message_validator.ex
index 7269f9ff0b8a60dc8d45afc0e5b071de03a26272..7a31a99bfeb8be15b0947886c24cff31a2f2d65a 100644
(file)
--- a/
lib/pleroma/web/activity_pub/object_validators/create_chat_message_validator.ex
+++ b/
lib/pleroma/web/activity_pub/object_validators/create_chat_message_validator.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
# NOTES
# SPDX-License-Identifier: AGPL-3.0-only
# NOTES
@@
-39,7
+39,7
@@
defmodule Pleroma.Web.ActivityPub.ObjectValidators.CreateChatMessageValidator do
|> validate_data(meta)
end
|> validate_data(meta)
end
- def
validate_data(cng, meta \\ []
) do
+ def
p validate_data(cng, meta
) do
cng
|> validate_required([:id, :actor, :to, :type, :object])
|> validate_inclusion(:type, ["Create"])
cng
|> validate_required([:id, :actor, :to, :type, :object])
|> validate_inclusion(:type, ["Create"])