Return to prev on save
This commit is contained in:
parent
f8d4f49f7f
commit
835bfbddb0
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue