forked from GNUsocial/gnu-social
clear the site owner when profile changes
This commit is contained in:
parent
f6ebe81538
commit
5a6967db6c
@ -285,6 +285,10 @@ class ProfilesettingsAction extends AccountSettingsAction
|
||||
} else {
|
||||
// Re-initialize language environment if it changed
|
||||
common_init_language();
|
||||
// Clear the site owner, in case nickname changed
|
||||
if ($user->hasRole(Profile_role::OWNER)) {
|
||||
User::blow('user:site_owner');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user