From 127d09a09b68dc30d45da34086010a98bddac5d8 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 19 Mar 2023 13:54:13 -0600 Subject: [PATCH] Ensure AP setup for user if not already at toggle time (fix) --- core/activitypub/settings.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/activitypub/settings.js b/core/activitypub/settings.js index 2b973359..69847b6f 100644 --- a/core/activitypub/settings.js +++ b/core/activitypub/settings.js @@ -50,7 +50,10 @@ module.exports = class ActivityPubSettings { const { prepareLocalUserAsActor } = require('./util'); prepareLocalUserAsActor(user, { force: false }, err => { - return cb(err); + if (err) { + return cb(err); + } + return user.persistProperties(user.properties, cb); }); } );