|
|
|
@ -491,9 +491,11 @@ class Notification extends Model |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$content = str_replace(['<br>', '<br/>', '<br />'], "\n", $content); |
|
|
|
|
|
|
|
$content = strip_tags($content); |
|
|
|
$content = strip_tags($content); |
|
|
|
$content = html_entity_decode($content, ENT_QUOTES); |
|
|
|
$content = explode("\n", $content); |
|
|
|
|
|
|
|
$content = array_map('trim', $content); |
|
|
|
|
|
|
|
$content = array_filter($content); |
|
|
|
|
|
|
|
$content = implode(PHP_EOL, $content); |
|
|
|
|
|
|
|
|
|
|
|
$gcmRegistrationIds = []; |
|
|
|
$gcmRegistrationIds = []; |
|
|
|
foreach ($userIds as $userId) { |
|
|
|
foreach ($userIds as $userId) { |
|
|
|
@ -529,7 +531,7 @@ class Notification extends Model |
|
|
|
'title' => $title, |
|
|
|
'title' => $title, |
|
|
|
'body' => $content, |
|
|
|
'body' => $content, |
|
|
|
], |
|
|
|
], |
|
|
|
'collapse_key' => 'Messages', |
|
|
|
'collapse_key' => get_lang('Messages'), |
|
|
|
'sound' => true, |
|
|
|
'sound' => true, |
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
|