diff --git a/lib/Push.php b/lib/Push.php index 5b8c0876e..bc2548670 100644 --- a/lib/Push.php +++ b/lib/Push.php @@ -267,6 +267,8 @@ protected function encryptAndSign(Key $userKey, array $device, int $id, INotific $dataLength = 245 - strlen(json_encode($data)); if (strlen($subject) > $dataLength) { $data['subject'] = substr($subject, 0, $dataLength) . '…'; + } else { + $data['subject'] = $subject; } if ($isTalkNotification) {