DFRN import seems to work. Improvements are possible :-)

This commit is contained in:
Michael Vogel 2016-01-30 02:57:40 +01:00
commit 69457a4a5b
3 changed files with 43 additions and 16 deletions

View file

@ -389,7 +389,11 @@ function ping_get_notifications($uid) {
// Replace the name with {0} but ensure to make that only once
// The {0} is used later and prints the name in bold.
$pos = strpos($notification["message"],$notification['name']);
if ($notification['name'] != "")
$pos = strpos($notification["message"],$notification['name']);
else
$pos = false;
if ($pos !== false)
$notification["message"] = substr_replace($notification["message"],"{0}",$pos,strlen($notification["name"]));