projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7052298
)
Apply 1 suggestion(s) to 1 file(s)
author
lain
<lain@soykaf.club>
Wed, 5 Aug 2020 11:33:21 +0000
(11:33 +0000)
committer
lain
<lain@soykaf.club>
Wed, 5 Aug 2020 11:33:21 +0000
(11:33 +0000)
lib/pleroma/object.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/object.ex
b/lib/pleroma/object.ex
index 4dd929cfd61c6a78a3578073098fa519194e36f6..b3e6548570f7e2cbfcf5fa4e056a0ee3acab92da 100644
(file)
--- a/
lib/pleroma/object.ex
+++ b/
lib/pleroma/object.ex
@@
-255,9
+255,7
@@
defmodule Pleroma.Object do
end
end
- defp poll_is_multiple?(%Object{data: %{"anyOf" => anyOf}}) do
- !Enum.empty?(anyOf)
- end
+ defp poll_is_multiple?(%Object{data: %{"anyOf" => [_ | _]}}), do: true
defp poll_is_multiple?(_), do: false