]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
links to people tags
authorEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 22:51:37 +0000 (17:51 -0500)
committerEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 22:51:37 +0000 (17:51 -0500)
darcs-hash:20081120225137-84dde-03ae7562e67c825bb7bf29805d32a351f8b095c5.gz

actions/showstream.php

index 7f50566f28792755ce009a7038a707bd9e77ad1a..3eae5eb0ffb3d9e0a6da940be990c2135b1769fa 100644 (file)
@@ -377,7 +377,16 @@ class ShowstreamAction extends StreamAction {
                common_element('dd', 'notices', (is_int($notice_count)) ? $notice_count : '0');
                # XXX: link these to something
                common_element('dt', 'tags', _('Tags'));
-               common_element('dd', 'tags', implode(' ', Profile_tag::getTags($profile->id, $profile->id)));
+               common_element_start('dd', 'tags');
+               $tags = Profile_tag::getTags($profile->id, $profile->id);
+               foreach ($tags as $tag) {
+                       common_element('a', array('rel' => 'tag',
+                                                                         'href' => common_local_url('peopletag',
+                                                                                                                                array('tag' => $tag))),
+                                                  $tag);
+               }
+           common_element_end('dd');
+       
                common_element_end('dl');
 
                common_element_end('div');