Skip to content

Node.js based forum software built for the modern web

fix: missing actor assertion on 1b12 announced upboat

Julian Lamf9edb13f6209
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js
index 754720f208..ea5b032a1a 100644
--- a/src/activitypub/inbox.js
+++ b/src/activitypub/inbox.js
@@ -298,6 +298,7 @@ inbox.announce = async (req) => {
const exists = await posts.exists(localId || id);
if (exists) {
try {
+ await activitypub.actors.assert(object.actor);
const result = await posts.upvote(localId || id, object.actor);
if (localId) {
socketHelpers.upvote(result, 'notifications:upvoted-your-post-in');