Skip to content

Commit

Permalink
Merge pull request #615 from nextcloud/backport/610/stable21
Browse files Browse the repository at this point in the history
[stable21] show add, del and restored files within by and self filter
  • Loading branch information
nickvergessen authored Jul 15, 2021
2 parents df97404 + f391b93 commit 2aa814a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/UserSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,14 @@ protected function getDefaultFromSetting($method, $type) {
*/
public function getNotificationTypes() {
$settings = $this->manager->getSettings();
return array_map(function (ActivitySettings $setting) {

$return = array_map(function (ActivitySettings $setting) {
return $setting->getIdentifier();
}, $settings);
if (array_search('file_changed', $return) !== false) {
array_push($return, 'file_created', 'file_deleted', 'file_restored');
}
return $return;
}

/**
Expand Down

0 comments on commit 2aa814a

Please sign in to comment.