projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove suggestions
[akkoma]
/
lib
/
pleroma
/
object.ex
diff --git
a/lib/pleroma/object.ex
b/lib/pleroma/object.ex
index 4dd929cfd61c6a78a3578073098fa519194e36f6..052ad413bd6c7b2897b3b5823a60f1b884f96394 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