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