Skip to content
Snippets Groups Projects
Unverified Commit 77549d42 authored by Alexander Varwijk's avatar Alexander Varwijk
Browse files

Fix incorrect name for icon in push payload

The object property name was changed but the server side code wasn't.
parent 139b8d08
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ class PushActivitySend extends ActivitySendBase {
$file = File::load($fid);
$path = $file->createFileUrl(FALSE);
$push_data['icon_url'] = file_url_transform_relative($path);
$push_data['icon'] = file_url_transform_relative($path);
}
// Encode payload.
......
......@@ -176,7 +176,7 @@ class PushNotificationForm extends FormBase {
$file = File::load($fid);
$path = $file->createFileUrl(FALSE);
$push_data['icon_url'] = file_url_transform_relative($path);
$push_data['icon'] = file_url_transform_relative($path);
}
$serialized_payload = (new WebPushPayload('legacy', $push_data))->toJson();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment