Skip posts in indexer where publish date is nil
ci/woodpecker/pr/woodpecker Pipeline is pending Details

This commit is contained in:
sn0w 2022-12-08 10:04:20 +01:00
parent d5828f1c5e
commit 4c0911592b
Signed by untrusted user: sn0w
GPG Key ID: 52A4BAE175049057
2 changed files with 2 additions and 2 deletions

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"])
%{