Return to prev on save

This commit is contained in:
Bryan Ashby 2023-01-31 22:19:27 -07:00
parent f8d4f49f7f
commit 835bfbddb0
No known key found for this signature in database
GPG Key ID: C2C1B501E4EFD994
1 changed files with 10 additions and 1 deletions

View File

@ -101,7 +101,16 @@ exports.getModule = class ActivityPubUserConfig extends MenuModule {
apSettings.hideSocialGraph = values.hideSocialGraph; apSettings.hideSocialGraph = values.hideSocialGraph;
apSettings.showRealName = values.showRealName; apSettings.showRealName = values.showRealName;
return apSettings.persistToUserProperties(this.client.user, cb); apSettings.persistToUserProperties(this.client.user, err => {
if (err) {
const user = this.client.user;
this.client.log.warn(
{ error: err.message, user: user.username },
`Failed saving ActivityPub settings for user "${user.username}"`
);
}
return this.prevMenu(cb);
});
} }
_displayMainPage(clearScreen, cb) { _displayMainPage(clearScreen, cb) {