diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-08 21:03:08 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-08 21:03:08 -0700 |
commit | d11c1c63c02e88b3c73336741a2240ccc18d3b02 (patch) | |
tree | af32bf9355c99c578f696aec91f66374acd82208 /include/items.php | |
parent | 0bcd5522315649c8d4652b8bfaa9bec328b9d548 (diff) | |
download | volse-hubzilla-d11c1c63c02e88b3c73336741a2240ccc18d3b02.tar.gz volse-hubzilla-d11c1c63c02e88b3c73336741a2240ccc18d3b02.tar.bz2 volse-hubzilla-d11c1c63c02e88b3c73336741a2240ccc18d3b02.zip |
lots of fixes - most recent photo updates for contacts
Diffstat (limited to 'include/items.php')
-rw-r--r-- | include/items.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index e74132c6a..876f92330 100644 --- a/include/items.php +++ b/include/items.php @@ -61,6 +61,7 @@ function get_feed_for(&$a,$dfrn_id,$owner_id,$last_update) { $r = q("SELECT `item`.*, `item`.`id` AS `item_id`, `contact`.`name`, `contact`.`photo`, `contact`.`url`, + `contact`.`name-date`, `contact`.`uri-date`, `contact`.`avatar-date`, `contact`.`thumb`, `contact`.`dfrn-id`, `contact`.`self`, `contact`.`id` AS `contact-id`, `contact`.`uid` AS `contact-uid` FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` @@ -91,7 +92,12 @@ function get_feed_for(&$a,$dfrn_id,$owner_id,$last_update) { '$feed_updated' => xmlify(datetime_convert('UTC', 'UTC', $updated . '+00:00' , 'Y-m-d\TH:i:s\Z')) , '$name' => xmlify($owner['name']), '$profile_page' => xmlify($owner['url']), - '$photo' => xmlify($owner['photo']) + '$photo' => xmlify($owner['photo']), + '$picdate' => xmlify(datetime_convert('UTC','UTC',$owner['avatar-date'] . '+00:00' , 'Y-m-d\TH:i:s\Z')) , + '$uridate' => xmlify(datetime_convert('UTC','UTC',$owner['uri-date'] . '+00:00' , 'Y-m-d\TH:i:s\Z')) , + '$namdate' => xmlify(datetime_convert('UTC','UTC',$owner['name-date'] . '+00:00' , 'Y-m-d\TH:i:s\Z')) , + + )); foreach($items as $item) { |