diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-11-22 17:47:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-22 17:47:04 +0100 |
commit | 8dcd992ad42bb7b2a3a7a7acab0987579f293e26 (patch) | |
tree | ee8b2af702550754b0de8880999f63a502e521a5 /apps/settings/lib/Controller/UsersController.php | |
parent | 603feb98f24c92992da025255b0e125ad9d169ba (diff) | |
parent | f244406ebd54bd8eca160078c8513b57d0316f5b (diff) | |
download | nextcloud-server-8dcd992ad42bb7b2a3a7a7acab0987579f293e26.tar.gz nextcloud-server-8dcd992ad42bb7b2a3a7a7acab0987579f293e26.zip |
Merge pull request #34940 from nextcloud/feat/add-mastodon
Add mastodon and reorganize profile info section
Diffstat (limited to 'apps/settings/lib/Controller/UsersController.php')
-rw-r--r-- | apps/settings/lib/Controller/UsersController.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/settings/lib/Controller/UsersController.php b/apps/settings/lib/Controller/UsersController.php index 6be93d6a3a0..7c543508496 100644 --- a/apps/settings/lib/Controller/UsersController.php +++ b/apps/settings/lib/Controller/UsersController.php @@ -358,6 +358,8 @@ class UsersController extends Controller { * @param string|null $addressScope * @param string|null $twitter * @param string|null $twitterScope + * @param string|null $fediverse + * @param string|null $fediverseScope * * @return DataResponse */ @@ -373,7 +375,9 @@ class UsersController extends Controller { ?string $address = null, ?string $addressScope = null, ?string $twitter = null, - ?string $twitterScope = null + ?string $twitterScope = null, + ?string $fediverse = null, + ?string $fediverseScope = null ) { $user = $this->userSession->getUser(); if (!$user instanceof IUser) { @@ -412,6 +416,7 @@ class UsersController extends Controller { IAccountManager::PROPERTY_ADDRESS => ['value' => $address, 'scope' => $addressScope], IAccountManager::PROPERTY_PHONE => ['value' => $phone, 'scope' => $phoneScope], IAccountManager::PROPERTY_TWITTER => ['value' => $twitter, 'scope' => $twitterScope], + IAccountManager::PROPERTY_FEDIVERSE => ['value' => $fediverse, 'scope' => $fediverseScope], ]; $allowUserToChangeDisplayName = $this->config->getSystemValueBool('allow_user_to_change_display_name', true); foreach ($updatable as $property => $data) { @@ -451,6 +456,8 @@ class UsersController extends Controller { 'addressScope' => $userAccount->getProperty(IAccountManager::PROPERTY_ADDRESS)->getScope(), 'twitter' => $userAccount->getProperty(IAccountManager::PROPERTY_TWITTER)->getValue(), 'twitterScope' => $userAccount->getProperty(IAccountManager::PROPERTY_TWITTER)->getScope(), + 'fediverse' => $userAccount->getProperty(IAccountManager::PROPERTY_FEDIVERSE)->getValue(), + 'fediverseScope' => $userAccount->getProperty(IAccountManager::PROPERTY_FEDIVERSE)->getScope(), 'message' => $this->l10n->t('Settings saved'), ], ], |