diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-12 09:41:49 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-12 09:41:49 -0800 |
commit | f72eb17304af9c2d7dac8a34b07bd2433b79c8c4 (patch) | |
tree | 3862aab32eae74edba8fa1b2aa9a62288c544af4 /classes/User_group.php | |
parent | f3066c80d3c55dd0dbf8315674a76e4d2adbe49a (diff) | |
parent | 3dc84dd02d5558b7e2e9de903eac04edcd73aec7 (diff) |
Merge commit 'origin/testing' into 0.9.x
Diffstat (limited to 'classes/User_group.php')
-rw-r--r-- | classes/User_group.php | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/classes/User_group.php b/classes/User_group.php index 7be55163a..110f08301 100644 --- a/classes/User_group.php +++ b/classes/User_group.php @@ -295,7 +295,7 @@ class User_group extends Memcached_DataObject } // If not, check local groups. - + $group = Local_group::staticGet('nickname', $nickname); if (!empty($group)) { return User_group::staticGet('id', $group->group_id); @@ -371,16 +371,15 @@ class User_group extends Memcached_DataObject if ($source) { $xs->elementStart('source'); + $xs->element('id', null, $this->permalink()); $xs->element('title', null, $profile->nickname . " - " . common_config('site', 'name')); $xs->element('link', array('href' => $this->permalink())); - } - - if ($source) { + $xs->element('updated', null, $this->modified); $xs->elementEnd('source'); } $xs->element('title', null, $this->nickname); - $xs->element('summary', null, $this->description); + $xs->element('summary', null, common_xml_safe_str($this->description)); $xs->element('link', array('rel' => 'alternate', 'href' => $this->permalink())); @@ -390,7 +389,11 @@ class User_group extends Memcached_DataObject $xs->element('published', null, common_date_w3dtf($this->created)); $xs->element('updated', null, common_date_w3dtf($this->modified)); - $xs->element('content', array('type' => 'html'), $this->description); + $xs->element( + 'content', + array('type' => 'html'), + common_xml_safe_str($this->description) + ); $xs->elementEnd('entry'); @@ -455,7 +458,7 @@ class User_group extends Memcached_DataObject $group = new User_group(); $group->query('BEGIN'); - + if (empty($uri)) { // fill in later... $uri = null; |