mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: missing actor assertion on 1b12 announced upboat
This commit is contained in:
@@ -298,6 +298,7 @@ inbox.announce = async (req) => {
|
|||||||
const exists = await posts.exists(localId || id);
|
const exists = await posts.exists(localId || id);
|
||||||
if (exists) {
|
if (exists) {
|
||||||
try {
|
try {
|
||||||
|
await activitypub.actors.assert(object.actor);
|
||||||
const result = await posts.upvote(localId || id, object.actor);
|
const result = await posts.upvote(localId || id, object.actor);
|
||||||
if (localId) {
|
if (localId) {
|
||||||
socketHelpers.upvote(result, 'notifications:upvoted-your-post-in');
|
socketHelpers.upvote(result, 'notifications:upvoted-your-post-in');
|
||||||
|
|||||||
Reference in New Issue
Block a user