From 080aac51144c00de0d861525d67c790581686acb Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 9 Apr 2026 15:35:53 -0400 Subject: [PATCH] fix: lint --- src/activitypub/inbox.js | 2 -- src/activitypub/index.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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);