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:
authordartcafe <github@dartcafe.de>2022-07-08 23:56:26 +0300
committerdartcafe <github@dartcafe.de>2022-07-08 23:56:26 +0300
commit6f7e3b569e4fed3e77a0ec64c6482f5582b5327b (patch)
treeca4dffe9126d0b343acc26877a305547a0740e73
parent312d6990f51a5eb68b0b5a6a4427f1165330d0c0 (diff)
fix unsubscribe from public poll
Signed-off-by: dartcafe <github@dartcafe.de>
-rw-r--r--lib/Controller/PublicController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/PublicController.php b/lib/Controller/PublicController.php
index 1bbb3669..9053d97a 100644
--- a/lib/Controller/PublicController.php
+++ b/lib/Controller/PublicController.php
@@ -278,7 +278,7 @@ class PublicController extends Controller {
* @NoAdminRequired
*/
public function unsubscribe(string $token): JSONResponse {
- return $this->response(fn () => ['subscribed' => $this->subscriptionService->set(true, null, $token)]);
+ return $this->response(fn () => ['subscribed' => $this->subscriptionService->set(false, null, $token)]);
}
/**