diff --git a/server.js b/server.js index 15ca3f9..d9a617a 100644 --- a/server.js +++ b/server.js @@ -118,7 +118,6 @@ app.engine('.hbs', hbs.engine); app.use(simpleLogger); - app.use('/admin', isAuthenticated, routes.admin); app.use('/', routes.auth); app.use('/bookmark', routes.bookmark); @@ -133,4 +132,4 @@ app.use('/nodeinfo/2.0', routes.nodeinfo); app.use('/nodeinfo/2.1', routes.nodeinfo); app.use('/opensearch.xml', routes.opensearch); -app.listen(PORT, () => console.log(`App listening on port ${PORT}`)); \ No newline at end of file +app.listen(PORT, () => console.log(`App listening on port ${PORT}`)); diff --git a/src/activitypub.js b/src/activitypub.js index 1de8a3b..86eaff1 100644 --- a/src/activitypub.js +++ b/src/activitypub.js @@ -19,11 +19,11 @@ export async function signAndSend(message, name, domain, db, targetDomain, inbox console.log(`Sent message to an inbox at ${targetDomain}!`); console.log('Response Status Code:', response.status); console.log('Response body:', data); - return response + return response; } catch (error) { console.log('Error:', error.message); console.log('Stacktrace: ', error.stack); - return error + return error; } } @@ -279,4 +279,4 @@ export function synthesizeActivity(note) { actor: note.attributedTo, object: note, }; -} \ No newline at end of file +} diff --git a/src/routes/activitypub/user.js b/src/routes/activitypub/user.js index 8fb0e7a..59cb735 100644 --- a/src/routes/activitypub/user.js +++ b/src/routes/activitypub/user.js @@ -16,7 +16,6 @@ router.get('/:name', async (req, res) => { const domain = req.app.get('domain'); const username = name; name = `${name}@${domain}`; - const actor = await db.getActor(); if (actor === undefined) {