fix: portfolio is not being displayed in latest feed

This commit is contained in:
DIYgod
2023-08-06 23:43:24 +01:00
parent 759f45ecff
commit f4fcdf55b1
2 changed files with 15 additions and 2 deletions
+5 -1
View File
@@ -781,7 +781,11 @@ export async function getFeed({
.filter(
(post) =>
countCharacters(post?.metadata?.content?.content || "") >
(post?.metadata?.content?.tags?.[0] === "comment" ? 6 : 300) &&
(post?.metadata?.content?.tags?.[0] === "comment"
? 6
: post?.metadata?.content?.tags?.[0] === "portfolio"
? -1
: 300) &&
!(new Date(post.metadata?.content?.date_published || "") > new Date()),
)
.map((post) => {