From 100f6343ad4d5bf5cf51872d149f5439a3f93f63 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 30 Apr 2015 06:11:05 +0200 Subject: [PATCH 1/2] Highlighting of user names should now work in every case --- mod/ping.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mod/ping.php b/mod/ping.php index a475c558c..ee5be67f6 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -1,5 +1,6 @@ '; } @@ -208,17 +207,17 @@ function ping_init(&$a) { if ($intro>0){ foreach ($intros as $i) { - echo xmlize( $a->get_baseurl().'/notifications/intros/'.$i['id'], $i['name'], $i['url'], $i['photo'], relative_date($i['datetime']), 'notify-unseen',t("{0} wants to be your friend") ); + echo xmlize($a->get_baseurl().'/notifications/intros/'.$i['id'], $i['name'], $i['url'], $i['photo'], relative_date($i['datetime']), 'notify-unseen', "→ ".t("{0} wants to be your friend")); }; } if ($mail>0){ foreach ($mails as $i) { - echo xmlize( $a->get_baseurl().'/message/'.$i['id'], $i['from-name'], $i['from-url'], $i['from-photo'], relative_date($i['created']), 'notify-unseen',t("{0} sent you a message") ); + echo xmlize($a->get_baseurl().'/message/'.$i['id'], $i['from-name'], $i['from-url'], $i['from-photo'], relative_date($i['created']), 'notify-unseen',"→ ".t("{0} sent you a message")); }; } if ($register>0){ foreach ($regs as $i) { - echo xmlize( $a->get_baseurl().'/admin/users/', $i['name'], $i['url'], $i['micro'], relative_date($i['created']), 'notify-unseen',t("{0} requested registration") ); + echo xmlize($a->get_baseurl().'/admin/users/', $i['name'], $i['url'], $i['micro'], relative_date($i['created']), 'notify-unseen', "→ ".t("{0} requested registration")); }; } @@ -349,6 +348,9 @@ function ping_get_notifications($uid, $regularnotifications) { if (is_null($notification["deleted"])) $notification["deleted"] = 0; + $notification["msg"] = strip_tags(bbcode($notification["msg"])); + $notification["name"] = strip_tags(bbcode($notification["name"])); + // Replace the name with {0} but ensure to make that only once // The {0} is used later and prints the name in bold. // But don't do it for the android app. From b5e10329f29014861d8e17fa15e00006feb29f4f Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 30 Apr 2015 06:12:21 +0200 Subject: [PATCH 2/2] The oembed iframe now has a class name to use it for stylesheets. --- include/oembed.php | 2 +- view/global.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/oembed.php b/include/oembed.php index 69583167c..a793bd800 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -210,7 +210,7 @@ function oembed_iframe($src,$width,$height) { $a = get_app(); $s = $a->get_baseurl()."/oembed/".base64url_encode($src); - return ''; + return ''; } diff --git a/view/global.css b/view/global.css index c61ded6ae..628bac7cf 100644 --- a/view/global.css +++ b/view/global.css @@ -84,6 +84,10 @@ span.connector { position: relative; } +.embed_rich { + display: block; +} + /* Shared Messages */ .shared_header { height: 32px;