Skip to content

Commit 1bb32b0

Browse files
committed
Merge branch 'main' into prep-1.0.1
2 parents 84ccaf2 + 10ba38e commit 1bb32b0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ jobs:
347347

348348
# START Other Tests Job (SQLite 3 and mssql)
349349
other-tests:
350-
runs-on: ubuntu-22.04
350+
runs-on: ubuntu-20.04 # TODO: Change back to 'ubuntu-22.04' when https://github.com/microsoft/mssql-docker/issues/899 resolved.
351351
strategy:
352352
matrix:
353353
include:

ucp/controller/webpush.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ public function notification(): JsonResponse
105105

106106
$notification_data = $this->get_user_notifications();
107107

108-
// Decode and return data if everything is fine
108+
// Decode and return data if everything is fine; update url paths and decode message emoji
109109
$data = json_decode($notification_data, true);
110110
$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') : '';
111112

112113
return new JsonResponse($data);
113114
}

0 commit comments

Comments
 (0)