Skip to content

Commit

Permalink
fix: atom and json feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-shuman committed Sep 3, 2024
1 parent 65b7cf8 commit bfe4c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/articles/add/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const POST: RequestHandler = async ({ request }) => {
description: article.description?.slice(0, 200) ?? article.content?.slice(0, 200) + '...',
content: article.content,
author: article.author,
date: article.published ?? new Date().toString()
date: article.published || new Date().toDateString()
});

return new Response(JSON.stringify({ id: lastInsertRowid, url }), {
Expand Down

0 comments on commit bfe4c8f

Please sign in to comment.