]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show self-tags in profile list
authorEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 22:59:17 +0000 (17:59 -0500)
committerEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 22:59:17 +0000 (17:59 -0500)
darcs-hash:20081120225917-84dde-f9813a891a6547264817ed289b9899382abd8c60.gz

lib/profilelist.php

index 613245c02495ece7ec13329a380eeaafd87d6808..17ad5099c7c9f3d973a562fa668c08b542b5a3f4 100644 (file)
@@ -108,6 +108,19 @@ class ProfileList {
                        common_element_end('p');
                }
                
+               $tags = Profile_tag::getTags($this->profile->id, $this->profile->id);
+               
+               if ($tags) {
+                       common_element_start('p', 'tags');
+                       foreach ($tags as $tag) {
+                               common_element('a', array('rel' => 'tag',
+                                                                                 'href' => common_local_url('peopletag',
+                                                                                                                                        array('tag' => $tag))),
+                                                          $tag);
+                       }
+                       common_element_end('p');
+               }
+               
                common_element_end('li');
        }