diff --git a/lib/UserSettings.php b/lib/UserSettings.php index a28580bb7..d0c078d18 100644 --- a/lib/UserSettings.php +++ b/lib/UserSettings.php @@ -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; } /**