projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mandate published on notes
[akkoma]
/
lib
/
mix
/
tasks
/
pleroma
/
search
/
meilisearch.ex
diff --git
a/lib/mix/tasks/pleroma/search/meilisearch.ex
b/lib/mix/tasks/pleroma/search/meilisearch.ex
index 27a31afcf4a684f8d87dfb8daac2abe6a3c7a7e3..caeeb58d5f6ee39629b8a97ee55443ed5168512a 100644
(file)
--- a/
lib/mix/tasks/pleroma/search/meilisearch.ex
+++ b/
lib/mix/tasks/pleroma/search/meilisearch.ex
@@
-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
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'")]
)
order_by: [desc: fragment("data->'published'")]
)