added thought filtering
This commit is contained in:
@@ -4,7 +4,8 @@ import { decode } from 'he';
|
|||||||
|
|
||||||
export enum ContentType {
|
export enum ContentType {
|
||||||
YOUTUBE_VIDEO,
|
YOUTUBE_VIDEO,
|
||||||
BLOG_POST
|
BLOG_POST,
|
||||||
|
THOUGHT
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ContentItem {
|
export interface ContentItem {
|
||||||
@@ -61,7 +62,7 @@ async function fetchBlogArticles(fetch: typeof globalThis.fetch, url: string) {
|
|||||||
published: new Date(article.pubDate),
|
published: new Date(article.pubDate),
|
||||||
link: article.link,
|
link: article.link,
|
||||||
image: undefined,
|
image: undefined,
|
||||||
type: ContentType.BLOG_POST
|
type: article.title == article.description ? ContentType.THOUGHT : ContentType.BLOG_POST
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return items.slice(0, 5);
|
return items.slice(0, 5);
|
||||||
|
|||||||
Reference in New Issue
Block a user