diff options
Diffstat (limited to 'apps/comments/appinfo/app.php')
-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; -}); |