From a480ff5605202c9e1123c027336401a335178aea Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 7 Nov 2013 08:20:41 +0100 Subject: [PATCH] Group mentions got the wrong class. Now lists get their own too! --- lib/util.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index 8dfd616e9a..7999afbd14 100644 --- a/lib/util.php +++ b/lib/util.php @@ -643,7 +643,7 @@ function common_linkify_mention($mention) $xs->elementStart('span', 'vcard'); $xs->elementStart('a', $attrs); - $xs->element('span', 'fn nickname mention', $mention['text']); + $xs->element('span', 'fn nickname '.$mention['type'], $mention['text']); $xs->elementEnd('a'); $xs->elementEnd('span'); @@ -743,6 +743,7 @@ function common_find_mentions($text, $notice) } $mention = array('mentioned' => array($mentioned), + 'type' => 'mention', 'text' => $match[0], 'position' => $match[1], 'url' => $url); @@ -772,6 +773,7 @@ function common_find_mentions($text, $notice) 'tag' => $tag)); $mentions[] = array('mentioned' => $tagged, + 'type' => 'list', 'text' => $hmatch[0], 'position' => $hmatch[1], 'url' => $url); @@ -790,6 +792,7 @@ function common_find_mentions($text, $notice) $profile = $group->getProfile(); $mentions[] = array('mentioned' => array($profile), + 'type' => 'group', 'text' => $hmatch[0], 'position' => $hmatch[1], 'url' => $group->permalink(), -- 2.39.5