Skip to content

Commit b06c7c7

Browse files
authored
Merge pull request #115 from phpbb-extensions/prep-1.0.3
Prep 1.0.3
2 parents 4197604 + db7c5cc commit b06c7c7

File tree

5 files changed

+22
-14
lines changed

5 files changed

+22
-14
lines changed

CHANGELOG.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
### 1.0.3 - 2025-05-21
4+
5+
- Fixed issues where opening an image attachment could lock you out of the UI while on a mobile device as a progressive web app.
6+
- Fixed issues where Safari would stop pushing notifications to a user after the first three.
7+
- Fixed attempts to notify banned users.
8+
- Fixed potential web root path issues in notification links.
9+
- Removed obsolete meta-tags for progressive web app functionality.
10+
311
### 1.0.2 - 2025-01-04
412

513
- Instead of blocking all bots, we now let reverse proxies know we detected a bot.
@@ -12,13 +20,13 @@
1220

1321
### 1.0.1 - 2024-09-30
1422

15-
- Added FAQ section to phpBB's FAQ page to answer any questions users may have about web push notifications.
23+
- Added a FAQ section to phpBB's FAQ page to answer any questions users may have about web push notifications.
1624
- Fixed issues with Emoji not appearing correctly in push notifications.
1725
- Fixed possible issues with the URLs linking to PWA icons for the Web Manifest.
18-
- Fixed issues causing logged-out users to see console errors in their browsers.
19-
- Ensure short site name for PWA is valid and compatible with the Web Manifest.
26+
- Fixed the issues causing logged-out users to see console errors in their browsers.
27+
- Ensure the short site name for PWA is valid and compatible with the Web Manifest.
2028
- Will now check for required PHP modules during installation.
21-
- Various other under the hood improvements.
29+
- Various other under-the hood improvements.
2230

2331
### 1.0.0 - 2024-07-01
2432

@@ -35,7 +43,7 @@
3543

3644
### 1.0.0-RC9 - 2024-06-16
3745

38-
- The subscribe toggle in the notification dropdown has been optimized for better mobile usability.
46+
- The **subscribe** toggle in the notification dropdown has been optimized for better mobile usability.
3947
- Notifications missed by logged-out users will now be delivered once they log back in.
4048
- Users who are unable to subscribe due to previously denying notifications in their browser settings will now see an alert message.
4149

@@ -53,7 +61,7 @@
5361

5462
### 1.0.0-RC6 - 2024-06-01
5563

56-
- New: Added an enable push subscriptions toggle switch to the footer of the Notifications drop down.
64+
- New: Added an **enable push subscriptions** toggle switch to the footer of the Notifications drop down.
5765
- Fixed an issue where the Subscribe button was appearing on some UCP pages unexpectedly.
5866
- Fixed an issue where push notifications failed on Android devices using Firefox as their browser.
5967
- Requires phpBB 3.3.12 or newer.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "phpbb-extension",
44
"description": "An official phpBB extension that allows board users to receive browser-based push notifications.",
55
"homepage": "https://www.phpbb.com/customise/db/extension/webpushnotifications/",
6-
"version": "1.0.2",
6+
"version": "1.0.3",
77
"license": "GPL-2.0-only",
88
"authors": [
99
{

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/controller/controller_webpush_test.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private function getExpectedResponse(): array
145145
return [
146146
'heading' => 'yourdomain.com',
147147
'title' => 'Quoted by Guest in:',
148-
'text' => '"Welcome to phpBB3"',
148+
'text' => '"Welcome to phpBB"',
149149
'url' => 'phpBB/viewtopic.php?p=1#p1',
150150
'avatar' => ['src' => ''],
151151
];
@@ -242,7 +242,7 @@ public function test_get_user_notification()
242242
$this->request->method('variable')
243243
->willReturnMap([
244244
['token', '', false, request_interface::REQUEST, 'foobar'],
245-
['item_id', 0, false, request_interface::REQUEST, 1],
245+
['item_id', 0, false, request_interface::REQUEST, 2],
246246
['type_id', 0, false, request_interface::REQUEST, 4],
247247
]);
248248
$this->setupUserData(2);
@@ -262,7 +262,7 @@ public function test_get_user_notification_anonymous()
262262
$this->request->method('variable')
263263
->willReturnMap([
264264
['token', '', false, request_interface::REQUEST, '0ccf8fcd96a66297b77b66109cbe9870e1a6fa66e42b9bf36d1f2c7263240058'],
265-
['item_id', 0, false, request_interface::REQUEST, 1],
265+
['item_id', 0, false, request_interface::REQUEST, 2],
266266
['type_id', 0, false, request_interface::REQUEST, 4],
267267
['user_id', 0, false, request_interface::REQUEST, 2],
268268
]);
@@ -283,7 +283,7 @@ public function test_get_user_notification_anonymous_invalid_token()
283283
$this->request->method('variable')
284284
->willReturnMap([
285285
['token', '', false, request_interface::REQUEST, '488c17afe4f18714c235b395e21b78df1c3d78bf1e13d0633ed9425d2eebf967'],
286-
['item_id', 0, false, request_interface::REQUEST, 1],
286+
['item_id', 0, false, request_interface::REQUEST, 2],
287287
['type_id', 0, false, request_interface::REQUEST, 4],
288288
['user_id', 0, false, request_interface::REQUEST, 2],
289289
]);

tests/controller/fixtures/webpush.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
<column>notification_time</column>
1818
<row>
1919
<value>1</value>
20-
<value><![CDATA[{"item_id":1,"notification_type_id":4,"item_parent_id":1,"notification_time":1738437884,"notification_read":false,"notification_data":"a:6:{s:9:\"poster_id\";i:3;s:11:\"topic_title\";s:17:\"Welcome to phpBB3\";s:12:\"post_subject\";s:21:\"Re: Welcome to phpBB3\";s:13:\"post_username\";s:0:\"\";s:8:\"forum_id\";i:2;s:10:\"forum_name\";s:16:\"Your first forum\";}","user_id":2,"notification_type_name":"notification.type.quote"}]]></value>
20+
<value><![CDATA[{"item_id":1,"notification_type_id":4,"item_parent_id":1,"notification_time":1738437884,"notification_read":false,"notification_data":"a:6:{s:9:\"poster_id\";i:3;s:11:\"topic_title\";s:17:\"Welcome to phpBB\";s:12:\"post_subject\";s:21:\"Re: Welcome to phpBB\";s:13:\"post_username\";s:0:\"\";s:8:\"forum_id\";i:2;s:10:\"forum_name\";s:16:\"Your first forum\";}","user_id":2,"notification_type_name":"notification.type.quote"}]]></value>
2121
<value>488c17afe4f18714c235b395e21b78df1c3d78bf1e13d0633ed9425d2eebf967</value>
2222
<value>2</value>
2323
<value>4</value>
2424
<value>1738437884</value>
2525
</row>
2626
<row>
2727
<value>2</value>
28-
<value><![CDATA[{"heading":"yourdomain.com","title":"Quoted by Guest in:","text":"\"Welcome to phpBB3\"","url":"phpBB\/viewtopic.php?p=1#p1","avatar":{"src":""}}]]></value>
28+
<value><![CDATA[{"heading":"yourdomain.com","title":"Quoted by Guest in:","text":"\"Welcome to phpBB\"","url":"phpBB\/viewtopic.php?p=1#p1","avatar":{"src":""}}]]></value>
2929
<value>488c17afe4f18714c235b395e21b78df1c3d78bf1e13d0633ed9425d2eebf967</value>
3030
<value>2</value>
3131
<value>4</value>

0 commit comments

Comments
 (0)