trimmed
end
- if String.length(content) > 1 do
+ if String.length(content) > 1 and not is_nil(data["published"]) do
{:ok, published, _} = DateTime.from_iso8601(data["published"])
%{
defimpl Elasticsearch.Document, for: Pleroma.Object do
def id(obj), do: obj.id
def routing(_), do: false
- def encode(_), do: nil
+ def encode(_), do: %{}
end