Skip to content

Commit

Permalink
Merge pull request #2981 from nextcloud/fix/subscription
Browse files Browse the repository at this point in the history
Fix subscriptions
  • Loading branch information
dartcafe authored Jul 8, 2023
2 parents 0a8c745 + b7dcd3c commit 23a9567
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
### Fixes
- Fix date shifting and sequence problems with daylight saving times
- Bring back notifications
- fix notification subscription
## [5.1.0] - 2023-06-27
### Changes
- Added user option to remove outdated polls from th "Relevant" list
Expand Down
3 changes: 2 additions & 1 deletion lib/Service/SubscriptionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ public function set(bool $subscribed, Acl $acl): bool {
} catch (Exception $e) {
if ($e->getReason() === Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
// catch silently (assume already subscribed)
} else {
throw $e;
}
throw $e;
}
}
return $subscribed;
Expand Down

0 comments on commit 23a9567

Please sign in to comment.