We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ad3b30 commit bf40978Copy full SHA for bf40978
ucp/controller/webpush.php
@@ -105,9 +105,10 @@ public function notification(): JsonResponse
105
106
$notification_data = $this->get_user_notifications();
107
108
- // Decode and return data if everything is fine
+ // Decode and return data if everything is fine; update url paths and decode message emoji
109
$data = json_decode($notification_data, true);
110
$data['url'] = isset($data['url']) ? $this->path_helper->update_web_root_path($data['url']) : '';
111
+ $data['text'] = isset($data['text']) ? html_entity_decode($data['text'], ENT_NOQUOTES, 'UTF-8') : '';
112
113
return new JsonResponse($data);
114
}
0 commit comments