From ebe67484e7544390b45b1c5d3b9c406ac029c33f Mon Sep 17 00:00:00 2001 From: sneedgroup-holder Date: Wed, 6 Nov 2024 20:02:59 +0000 Subject: [PATCH] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8462f52..afbd6e4 100644 --- a/index.js +++ b/index.js @@ -120,7 +120,7 @@ app.post('/users/:username/posts', authenticate, (req, res) => { res.status(201).json(post); }); -// Route to get a user’s posts +// Route to get a user's posts app.get('/users/:username/posts', authenticate, (req, res) => { const { username } = req.params; @@ -185,7 +185,7 @@ activityPubRouter.get('/users/:username/outbox', (req, res) => { return res.status(404).json({ error: 'User not found' }); } - // Fetch posts from this user’s outbox (from the DB) + // Fetch posts from this user's outbox (from the DB) const userPosts = Object.values(db.get("posts") || {}).filter(post => post.author.username === username); res.json(userPosts); });