feat: filter featured posts by view

This commit is contained in:
DIYgod
2024-05-11 17:43:41 +08:00
parent 3c41d3ff89
commit acce267363
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"latest": [
151, 53994, 54570, 54481, 54537, 54302, 53944, 55768, 55855, 56592, 54986,
56875, 56873, 56666, 55996, 57407, 56249, 57858, 56973, 58600, 57399, 59737,
61688, 69750
61688, 69750, 62764
],
"comment": [54986],
"comment_content": ["snowcherryblossom"]
+10
View File
@@ -728,6 +728,11 @@ export async function getFeed({
createdAt: {
gt: "${restrictedDate.toISOString()}",
},
stat: {
viewDetailCount: {
gt: 10
},
},
metadata: {
content: {
path: "sources",
@@ -743,6 +748,11 @@ export async function getFeed({
path: "tags",
array_starts_with: "short" # TODO: remove this
}
}, {
content: {
path: "tags",
array_starts_with: "portfolio"
}
}]
},
OR: [