diff options
author | Simon L <szaimen@e.mail.de> | 2022-11-28 19:29:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 19:29:08 +0100 |
commit | c4157e4653e7bfa55f5c0fa2e82e12b5d120fa56 (patch) | |
tree | 8d54d5676f73a51725a91f02da0473bd6a7f9f58 /apps | |
parent | cd7cec587ed7048b6a5536d69bce904f9eadc598 (diff) | |
parent | 7c4ceb444cb22f519cd30af5cd22304b960c8818 (diff) | |
download | nextcloud-server-c4157e4653e7bfa55f5c0fa2e82e12b5d120fa56.tar.gz nextcloud-server-c4157e4653e7bfa55f5c0fa2e82e12b5d120fa56.zip |
Merge pull request #34941 from nextcloud/enh/33654/add-group-displayname-cache
Add a Group display name cache
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/AppInfo/Application.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/AppInfo/Application.php b/apps/files_sharing/lib/AppInfo/Application.php index 63fdced9011..960d376c6d3 100644 --- a/apps/files_sharing/lib/AppInfo/Application.php +++ b/apps/files_sharing/lib/AppInfo/Application.php @@ -29,6 +29,7 @@ */ namespace OCA\Files_Sharing\AppInfo; +use OC\Group\DisplayNameCache as GroupDisplayNameCache; use OC\Share\Share; use OC\User\DisplayNameCache; use OCA\Files_Sharing\Capabilities; @@ -66,6 +67,7 @@ use OCP\Files\Config\IMountProviderCollection; use OCP\Files\Events\BeforeDirectFileDownloadEvent; use OCP\Files\Events\BeforeZipCreatedEvent; use OCP\Files\IRootFolder; +use OCP\Group\Events\GroupChangedEvent; use OCP\Group\Events\UserAddedEvent; use OCP\IDBConnection; use OCP\IGroup; @@ -108,6 +110,7 @@ class Application extends App implements IBootstrap { $context->registerNotifierService(Notifier::class); $context->registerEventListener(UserChangedEvent::class, DisplayNameCache::class); + $context->registerEventListener(GroupChangedEvent::class, GroupDisplayNameCache::class); } public function boot(IBootContext $context): void { |