Skip to content

Commit 810cb9f

Browse files
committed
feat: update ArticleFeed to use published_at for article date and remove obsolete error page component
1 parent 3114863 commit 810cb9f

3 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/(home)/_components/ArticleFeed.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const ArticleFeed = () => {
8989
username: article?.user?.username ?? "",
9090
is_verified: Boolean(article?.user?.is_verified),
9191
}}
92-
publishedAt={article?.created_at.toDateString() ?? ""}
92+
publishedAt={article?.published_at?.toDateString() ?? ""}
9393
readingTime={readingTime(article?.body ?? "")}
9494
/>
9595
))}
File renamed without changes.

src/backend/services/article.actions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ export async function articleFeed(
329329
"cover_image",
330330
"body",
331331
"created_at",
332+
"published_at",
332333
"excerpt",
333334
],
334335
joins: [

0 commit comments

Comments
 (0)