Skip to content

Commit 66dde5a

Browse files
committed
Remove update_web_root_path in notification url
1 parent 1c377fc commit 66dde5a

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

ucp/controller/webpush.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,7 @@ public function notification(): JsonResponse
122122
throw new http_exception(Response::HTTP_FORBIDDEN, 'NO_AUTH_OPERATION');
123123
}
124124

125-
$notification_data = $this->get_user_notifications();
126-
127-
// Decode and return data if everything is fine
128-
$data = json_decode($notification_data, true);
129-
// $data['url'] = isset($data['url']) ? $this->path_helper->update_web_root_path($data['url']) : '';
130-
131-
return new JsonResponse($data);
125+
return new JsonResponse($this->get_user_notifications(), 200, [], true);
132126
}
133127

134128
/**

0 commit comments

Comments
 (0)