]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Group mentions got the wrong class. Now lists get their own too!
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 7 Nov 2013 07:20:41 +0000 (08:20 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 7 Nov 2013 07:20:41 +0000 (08:20 +0100)
lib/util.php

index 8dfd616e9a0c7ab65f5cd7a6808ccb56cfd5748f..7999afbd143652ca5b10d9c2064036e97bb66933 100644 (file)
@@ -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(),