mandate published on notes
[akkoma] / lib / mix / tasks / pleroma / search / meilisearch.ex
index 27a31afcf4a684f8d87dfb8daac2abe6a3c7a7e3..caeeb58d5f6ee39629b8a97ee55443ed5168512a 100644 (file)
@@ -60,7 +60,8 @@ defmodule Mix.Tasks.Pleroma.Search.Meilisearch do
             where:
               fragment("data->>'type' = 'Note'") and
                 (fragment("data->'to' \\? ?", ^Pleroma.Constants.as_public()) or
-                   fragment("data->'cc' \\? ?", ^Pleroma.Constants.as_public())),
+                   fragment("data->'cc' \\? ?", ^Pleroma.Constants.as_public())) and
+                fragment("data->>'published' IS NOT NULL"),
             order_by: [desc: fragment("data->'published'")]
           )