Skip to content

Commit

Permalink
Merge pull request #249 from nextcloud/backport/248/stable27
Browse files Browse the repository at this point in the history
[stable27] fix(UI): Merge UI setting with updatenotifications admin settings
  • Loading branch information
nickvergessen committed Nov 2, 2023
2 parents 02d0dfb + 54299a7 commit 4751e65
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 151 deletions.
4 changes: 0 additions & 4 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,4 @@
<background-jobs>
<job>OCA\NextcloudAnnouncements\Cron\Crawler</job>
</background-jobs>

<settings>
<admin>OCA\NextcloudAnnouncements\Settings\Admin</admin>
</settings>
</info>
33 changes: 0 additions & 33 deletions js/admin.js

This file was deleted.

6 changes: 5 additions & 1 deletion lib/Cron/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ protected function getUsersToNotify() {
return array_keys($this->notifyUsers);
}

$groups = $this->config->getAppValue($this->appName, 'notification_groups', '["admin"]');
$groups = $this->config->getAppValue($this->appName, 'notification_groups', '');
if ($groups === '') {
// Fallback to the update notifications when not explicitly configured back in the days when this app had a UI
$groups = $this->config->getAppValue('updatenotification', 'notify_groups', '["admin"]');
}
$groups = json_decode($groups, true);

if ($groups === null) {
Expand Down
75 changes: 0 additions & 75 deletions lib/Settings/Admin.php

This file was deleted.

38 changes: 0 additions & 38 deletions templates/admin.php

This file was deleted.

0 comments on commit 4751e65

Please sign in to comment.