From 7aefdcca3d7549ab6a1976b353347a4abe2a8c2c Mon Sep 17 00:00:00 2001 From: Jonathan Treffler Date: Wed, 24 Jul 2024 14:23:16 +0200 Subject: [PATCH] return transport defined response on subscription updates just like on new registrations --- lib/Dav/SubscriptionManagementPlugin.php | 1 + lib/PushTransports/WebPushTransport.php | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/Dav/SubscriptionManagementPlugin.php b/lib/Dav/SubscriptionManagementPlugin.php index 9e990c7..14f3e8c 100644 --- a/lib/Dav/SubscriptionManagementPlugin.php +++ b/lib/Dav/SubscriptionManagementPlugin.php @@ -169,6 +169,7 @@ class SubscriptionManagementPlugin extends ServerPlugin { [ 'success' => $updateSuccess, 'errors' => $updateErrors, + 'response' => $responseContent, ] = $transport->updateSubscription($subscription->getId(), $subscriptionOptions); if(!$updateSuccess) { diff --git a/lib/PushTransports/WebPushTransport.php b/lib/PushTransports/WebPushTransport.php index ebd638a..3d6b633 100644 --- a/lib/PushTransports/WebPushTransport.php +++ b/lib/PushTransports/WebPushTransport.php @@ -111,6 +111,7 @@ class WebPushTransport extends Transport { // there are no options which can be edited -> NOOP return [ 'success' => True, + 'response' => "", ]; } }