aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-08-01 09:28:26 +0200
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-08-01 11:03:24 +0200
commit80231e60aab2816f7d548b2d59b477ed865bcf9a (patch)
tree6319fdb10437fdf4285612ebc560d195f986049b /apps/comments
parentc52b7e5ebc6736de2d9991af379e4ed9885aab7b (diff)
downloadnextcloud-server-80231e60aab2816f7d548b2d59b477ed865bcf9a.tar.gz
nextcloud-server-80231e60aab2816f7d548b2d59b477ed865bcf9a.zip
fix(activity): regroup Files and spltit sharing activity
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/comments')
-rw-r--r--apps/comments/lib/Activity/Setting.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/comments/lib/Activity/Setting.php b/apps/comments/lib/Activity/Setting.php
index cc7c47784ac..9315aedc104 100644
--- a/apps/comments/lib/Activity/Setting.php
+++ b/apps/comments/lib/Activity/Setting.php
@@ -5,10 +5,10 @@
*/
namespace OCA\Comments\Activity;
-use OCP\Activity\ISetting;
+use OCP\Activity\ActivitySettings;
use OCP\IL10N;
-class Setting implements ISetting {
+class Setting extends ActivitySettings {
public function __construct(
protected IL10N $l,
) {
@@ -22,6 +22,14 @@ class Setting implements ISetting {
return $this->l->t('<strong>Comments</strong> for files');
}
+ public function getGroupIdentifier() {
+ return 'files';
+ }
+
+ public function getGroupName() {
+ return $this->l->t('Files');
+ }
+
public function getPriority(): int {
return 50;
}