diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-12-12 19:36:31 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-12-12 19:36:31 +0300 |
commit | 099a340bf5f66e6c188e8896646802b998ba7063 (patch) | |
tree | 26e26065a7c48408cc0183e6a2aa6aa54748a586 /apps/comments/appinfo | |
parent | 2943b54f98c53ded616ae9ab3ebe2c6b8e47f762 (diff) |
The user displayNameResolver is specific to users, not the comments app
Other apps like spreed rely on it, and only can resolver per type can
be registered anyhow.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/comments/appinfo')
-rw-r--r-- | apps/comments/appinfo/app.php | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/apps/comments/appinfo/app.php b/apps/comments/appinfo/app.php index e6974111811..15c545ae1e4 100644 --- a/apps/comments/appinfo/app.php +++ b/apps/comments/appinfo/app.php @@ -60,14 +60,3 @@ $commentsManager->registerEventHandler(function () { $handler = $application->getContainer()->query(\OCA\Comments\EventHandler::class); return $handler; }); -$commentsManager->registerDisplayNameResolver('user', function($id) { - $manager = \OC::$server->getUserManager(); - $user = $manager->get($id); - if(is_null($user)) { - $l = \OC::$server->getL10N('comments'); - $displayName = $l->t('Unknown user'); - } else { - $displayName = $user->getDisplayName(); - } - return $displayName; -}); |