Skip posts in indexer where publish date is nil #356

Merged
floatingghost merged 1 commit from sn0w/akkoma:feature/indexer-skip-broken-activities into develop 2022-12-09 20:28:49 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 4c0911592b - Show all commits

View file

@ -30,7 +30,7 @@ defimpl Elasticsearch.Document, for: Pleroma.Activity do
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"])
%{

View file

@ -128,7 +128,7 @@ defmodule Pleroma.Search.Meilisearch do
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"])
%{