diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2021-04-10 11:47:24 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2021-06-01 11:23:04 +0200 |
commit | 469807a09189a19628558830344f620d9e02265b (patch) | |
tree | 202e3d56afdd3966d9e7c35f6da7c3ca685120d1 /lib/Controller | |
parent | f0008643b54498d747eaa21ec4627c16942da443 (diff) |
Chore: implement removals from #935
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/UserApiController.php | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/lib/Controller/UserApiController.php b/lib/Controller/UserApiController.php deleted file mode 100644 index f5721c837..000000000 --- a/lib/Controller/UserApiController.php +++ /dev/null @@ -1,50 +0,0 @@ -<?php -/** - * Nextcloud - News - * - * This file is licensed under the Affero General Public License version 3 or - * later. See the COPYING file. - * - * @author Alessandro Cosentino <cosenal@gmail.com> - * @author Bernhard Posselt <dev@bernhard-posselt.com> - * @author David Guillot <david@guillot.me> - * @copyright 2012 Alessandro Cosentino - * @copyright 2012-2014 Bernhard Posselt - * @copyright 2018 David Guillot - */ - -namespace OCA\News\Controller; - -use \OCP\IRequest; -use \OCP\IUserSession; - -class UserApiController extends ApiController -{ - public function __construct( - IRequest $request, - ?IUserSession $userSession - ) { - parent::__construct($request, $userSession); - } - - /** - * @NoAdminRequired - * @NoCSRFRequired - * @CORS - * - * @deprecated Should use https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-api-overview.html#user-metadata - * and avatar is `https://nc.url/avatar/{userid}/{size}?v={1|2}` - */ - public function index(): array - { - $user = $this->getUser(); - $avatar = null; - - return [ - 'userId' => $user->getUID(), - 'displayName' => $user->getDisplayName(), - 'lastLoginTimestamp' => $user->getLastLogin(), - 'avatar' => $avatar - ]; - } -} |