]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/profilesettings.php
Local_group and User are now assumed to be in same namespace
[quix0rs-gnu-social.git] / actions / profilesettings.php
index b2c9a3c01490a27def8513fdf16a26f7781f3811..71bc40ce9add95abfa53ebf42767ed0582880000 100644 (file)
@@ -243,8 +243,8 @@ class ProfilesettingsAction extends SettingsAction
             try {
                 $nickname = Nickname::normalize($nickname, true);
             } catch (NicknameTakenException $e) {
-                // Abort only if the nickname is occupied by another user
-                if ($e->byuser->id != $this->scoped->id) {
+                // Abort only if the nickname is occupied by another local profile
+                if ($e->profile->id != $this->scoped->id) {
                     $this->showForm($e->getMessage());
                     return;
                 }