Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TomCasavant committed Nov 8, 2024
1 parent 3210abb commit f1b731b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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}`));
app.listen(PORT, () => console.log(`App listening on port ${PORT}`));
6 changes: 3 additions & 3 deletions src/activitypub.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -279,4 +279,4 @@ export function synthesizeActivity(note) {
actor: note.attributedTo,
object: note,
};
}
}
1 change: 0 additions & 1 deletion src/routes/activitypub/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f1b731b

Please sign in to comment.