Ensure AP setup for user if not already at toggle time (fix)

This commit is contained in:
Bryan Ashby 2023-03-19 13:54:13 -06:00
parent 35c97f7035
commit 127d09a09b
No known key found for this signature in database
GPG Key ID: C2C1B501E4EFD994
1 changed files with 4 additions and 1 deletions

View File

@ -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);
});
}
);