Meilisearch: stop attempting to index posts with nil date
This commit is contained in:
parent
c9f9ec04c8
commit
d65f768b59
1 changed files with 1 additions and 0 deletions
|
@ -122,6 +122,7 @@ def object_to_search_data(object) do
|
|||
# Only index public or unlisted Notes
|
||||
if not is_nil(object) and object.data["type"] == "Note" and
|
||||
not is_nil(object.data["content"]) and
|
||||
not is_nil(object.data["published"]) and
|
||||
(Pleroma.Constants.as_public() in object.data["to"] or
|
||||
Pleroma.Constants.as_public() in object.data["cc"]) and
|
||||
object.data["content"] not in ["", "."] do
|
||||
|
|
Loading…
Reference in a new issue