Skip to content

Commit ec6afad

Browse files
committed
circles' activity
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent 4cc1c53 commit ec6afad

19 files changed

+1018
-1014
lines changed

appinfo/info.xml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,19 @@ Those groups of people (or "circles") can then be used by any other app for shar
6969
<!-- <command>OCA\Circles\Command\SyncContact</command>-->
7070
</commands>
7171

72-
<!-- <activity>-->
73-
<!-- <settings>-->
74-
<!-- <setting>OCA\Circles\Activity\SettingAsNonMember</setting>-->
75-
<!-- <setting>OCA\Circles\Activity\SettingAsMember</setting>-->
76-
<!-- <setting>OCA\Circles\Activity\SettingAsModerator</setting>-->
77-
<!-- </settings>-->
78-
<!-- <filters>-->
79-
<!-- <filter>OCA\Circles\Activity\Filter</filter>-->
80-
<!-- </filters>-->
81-
<!-- <providers>-->
82-
<!-- <provider>OCA\Circles\Activity\Provider</provider>-->
83-
<!-- </providers>-->
84-
<!-- </activity>-->
72+
<activity>
73+
<settings>
74+
<setting>OCA\Circles\Activity\SettingAsNonMember</setting>
75+
<setting>OCA\Circles\Activity\SettingAsMember</setting>
76+
<setting>OCA\Circles\Activity\SettingAsModerator</setting>
77+
</settings>
78+
<filters>
79+
<filter>OCA\Circles\Activity\Filter</filter>
80+
</filters>
81+
<providers>
82+
<provider>OCA\Circles\Activity\Provider</provider>
83+
</providers>
84+
</activity>
8585

8686
<collaboration>
8787
<plugins>

lib/Activity/Filter.php

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
<?php
22

3+
declare(strict_types=1);
4+
5+
/**
6+
* Circles - Bring cloud-users closer together.
7+
*
8+
* This file is licensed under the Affero General Public License version 3 or
9+
* later. See the COPYING file.
10+
*
11+
* @author Maxence Lange <maxence@artificial-owl.com>
12+
* @copyright 2023
13+
* @license GNU AGPL version 3 or any later version
14+
*
15+
* This program is free software: you can redistribute it and/or modify
16+
* it under the terms of the GNU Affero General Public License as
17+
* published by the Free Software Foundation, either version 3 of the
18+
* License, or (at your option) any later version.
19+
*
20+
* This program is distributed in the hope that it will be useful,
21+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
* GNU Affero General Public License for more details.
24+
*
25+
* You should have received a copy of the GNU Affero General Public License
26+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
27+
*
28+
*/
329

430
namespace OCA\Circles\Activity;
531

@@ -9,15 +35,11 @@
935
use OCP\IURLGenerator;
1036

1137
class Filter implements IFilter {
12-
/** @var IL10N */
13-
protected $l10n;
14-
15-
/** @var IURLGenerator */
16-
protected $url;
1738

18-
public function __construct(IL10N $l10n, IURLGenerator $url) {
19-
$this->l10n = $l10n;
20-
$this->url = $url;
39+
public function __construct(
40+
protected IL10N $l10n,
41+
protected IURLGenerator $url
42+
) {
2143
}
2244

2345
/**

0 commit comments

Comments
 (0)