projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cb3f8a
)
LikeValidator: Add defaults for recipients back in.
author
lain
<lain@soykaf.club>
Tue, 5 May 2020 08:38:59 +0000
(10:38 +0200)
committer
lain
<lain@soykaf.club>
Tue, 5 May 2020 08:38:59 +0000
(10:38 +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 d835b052e1033d308d16a8c1a47defcc1b124d30..034f25492d5affab99bda6d113bc58c29c950419 100644
(file)
--- a/
lib/pleroma/web/activity_pub/object_validators/like_validator.ex
+++ b/
lib/pleroma/web/activity_pub/object_validators/like_validator.ex
@@
-20,8
+20,8
@@
defmodule Pleroma.Web.ActivityPub.ObjectValidators.LikeValidator do
field(:object, Types.ObjectID)
field(:actor, Types.ObjectID)
field(:context, :string)
- field(:to, Types.Recipients)
- field(:cc, Types.Recipients)
+ field(:to, Types.Recipients
, default: []
)
+ field(:cc, Types.Recipients
, default: []
)
end
def cast_and_validate(data) do