summaryrefslogtreecommitdiff
path: root/classes/User_group.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-03-12 00:36:26 +0000
committerZach Copley <zach@status.net>2010-03-12 00:36:26 +0000
commit7cdcb89dc9d8dcc04848928c5b765f99566d2a4d (patch)
treec6a8dba46d7e006b12bc7b1494a677f4d067851a /classes/User_group.php
parentb12c3449309870c7c391ed0e2c7783f7a05a2334 (diff)
Add id and updated elements to atom source
Diffstat (limited to 'classes/User_group.php')
-rw-r--r--classes/User_group.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/classes/User_group.php b/classes/User_group.php
index 0460c9870..f29594502 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,11 +371,10 @@ 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');
}
@@ -455,7 +454,7 @@ class User_group extends Memcached_DataObject
$group = new User_group();
$group->query('BEGIN');
-
+
if (empty($uri)) {
// fill in later...
$uri = null;