projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8056e6
)
LikeValidator: Use Recipients Type.
author
lain
<lain@soykaf.club>
Wed, 29 Apr 2020 17:08:36 +0000
(19:08 +0200)
committer
lain
<lain@soykaf.club>
Wed, 29 Apr 2020 17:08:36 +0000
(19:08 +0200)
lib/pleroma/web/activity_pub/object_validators/like_validator.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/object_validators/like_validator.ex
b/lib/pleroma/web/activity_pub/object_validators/like_validator.ex
index 49546ceaaa22c33d331e5c5f9cb9818fa147da1c..eeb0da192246852a40803fd376e1e7ca2ebed8f2 100644
(file)
--- a/
lib/pleroma/web/activity_pub/object_validators/like_validator.ex
+++ b/
lib/pleroma/web/activity_pub/object_validators/like_validator.ex
@@
-19,8
+19,8
@@
defmodule Pleroma.Web.ActivityPub.ObjectValidators.LikeValidator do
field(:object, Types.ObjectID)
field(:actor, Types.ObjectID)
field(:context, :string)
- field(:to,
{:array, :string}
)
- field(:cc,
{:array, :string}
)
+ field(:to,
Types.Recipients
)
+ field(:cc,
Types.Recipients
)
end
def cast_and_validate(data) do