forked from mirrors/akkoma
Merge pull request 'Skip posts in indexer where publish date is nil' (#356) from sn0w/akkoma:feature/indexer-skip-broken-activities into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/356 Reviewed-by: floatingghost <hannah@coffee-and-dreams.uk>
This commit is contained in:
commit
f667884962
2 changed files with 2 additions and 2 deletions
|
@ -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"])
|
||||
|
||||
%{
|
||||
|
|
|
@ -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"])
|
||||
|
||||
%{
|
||||
|
|
Loading…
Reference in a new issue