From c8a58c924b0568fcb457ce54db79b463e34a202e Mon Sep 17 00:00:00 2001
From: Evan Prodromou <evan@status.net>
Date: Thu, 14 Apr 2011 17:03:10 -0400
Subject: [PATCH] show lists as a comma-separated list in sidebar

---
 lib/profileaction.php | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/lib/profileaction.php b/lib/profileaction.php
index 4f2a403e28..52c471909b 100644
--- a/lib/profileaction.php
+++ b/lib/profileaction.php
@@ -304,6 +304,8 @@ class ProfileAction extends OwnerDesignAction
 
                 $cur = common_current_user();
 
+                $first = true;
+
                 while ($lists->fetch()) {
                     if (!$lists->private ||
                         ($lists->private && !empty($cur) && $cur->id == $profile->id)) {
@@ -314,10 +316,14 @@ class ProfileAction extends OwnerDesignAction
                                                     array('tagger' => $this->profile->nickname,
                                                           'tag'    => $lists->tag));
                         }
-                        $this->elementStart('li');
+                        if (!$first) {
+                            $this->text(', ');
+                        } else {
+                            $first = false;
+                        }
+
                         $this->element('a', array('href' => $url),
                                        $lists->tag);
-                        $this->elementEnd('li');
                     }
                 }
 
-- 
2.39.5