Skip to content

Node.js based forum software built for the modern web

fix: lint

Julian Lam080aac51144c
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js
index ea7f18489b..1d398acc37 100644
--- a/src/activitypub/inbox.js
+++ b/src/activitypub/inbox.js
@@ -668,14 +668,12 @@ inbox.undo = async (req) => {
const exists = await posts.exists(id);
if (localType !== 'post' || !exists) {
throw new Error('[[error:invalid-pid]]');
- break;
}
const allowed = await privileges.posts.can('posts:upvote', id, activitypub._constants.uid);
if (!allowed) {
activitypub.helpers.log(`[activitypub/inbox.like] ${id} not allowed to be upvoted.`);
throw new Error('[[error:no-privileges]]');
- break;
}
await posts.unvote(id, actor);
diff --git a/src/activitypub/index.js b/src/activitypub/index.js
index 3d69cf077a..8edcff4461 100644
--- a/src/activitypub/index.js
+++ b/src/activitypub/index.js
@@ -2,7 +2,7 @@
const nconf = require('nconf');
const winston = require('winston');
-const { createHash, createVerify, getHashes, sign, verify } = require('crypto');
+const { createHash, getHashes, sign, verify } = require('crypto');
const { cpus } = require('os');
const { promisify } = require('util');
const signAsync = promisify(sign);