use substr() instead of str_replace()
This commit is contained in:
parent
8e6ebd4f7b
commit
8a4ee0506c
@ -263,10 +263,9 @@ class Ping extends \Zotlabs\Web\Controller {
|
|||||||
if($t) {
|
if($t) {
|
||||||
foreach($t as $tt) {
|
foreach($t as $tt) {
|
||||||
$message = trim(strip_tags(bbcode($tt['msg'])));
|
$message = trim(strip_tags(bbcode($tt['msg'])));
|
||||||
$count = 1;
|
|
||||||
|
|
||||||
if(strpos($message, $tt['xname']) === 0)
|
if(strpos($message, $tt['xname']) === 0)
|
||||||
$message = str_replace($tt['xname'], '', $message, $count);
|
$message = substr($message, strlen($tt['xname']) + 1);
|
||||||
|
|
||||||
$notifs[] = array(
|
$notifs[] = array(
|
||||||
'notify_link' => z_root() . '/notify/view/' . $tt['id'],
|
'notify_link' => z_root() . '/notify/view/' . $tt['id'],
|
||||||
|
Reference in New Issue
Block a user