Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/PublicController.php')
-rw-r--r--lib/Controller/PublicController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/PublicController.php b/lib/Controller/PublicController.php
index 5843d7a2..040f4eb1 100644
--- a/lib/Controller/PublicController.php
+++ b/lib/Controller/PublicController.php
@@ -293,7 +293,7 @@ class PublicController extends Controller {
*/
public function subscribe(string $token): DataResponse {
return $this->response(function () use ($token) {
- return ['subscribed' => $this->subscriptionService->set(0, $token, true)];
+ return ['subscribed' => $this->subscriptionService->set(true, 0, $token)];
});
}
@@ -304,7 +304,7 @@ class PublicController extends Controller {
*/
public function unsubscribe(string $token): DataResponse {
return $this->response(function () use ($token) {
- return ['subscribed' => $this->subscriptionService->set(0, $token, false)];
+ return ['subscribed' => $this->subscriptionService->set(true, 0, $token)];
});
}