better titles in RSS

darcs-hash:20080613153303-84dde-556ed40d75c3701df3a3ce7b5415896f9ac66d12.gz
This commit is contained in:
Evan Prodromou 2008-06-13 11:33:03 -04:00
parent 1c50e11077
commit 704155647f

View File

@ -110,9 +110,10 @@ class Rss10Action extends Action {
function show_item($notice) { function show_item($notice) {
global $config; global $config;
$profile = Profile::staticGet($notice->profile_id);
$nurl = common_local_url('shownotice', array('notice' => $notice->id)); $nurl = common_local_url('shownotice', array('notice' => $notice->id));
common_element_start('item', array('rdf:about' => $notice->uri)); common_element_start('item', array('rdf:about' => $notice->uri));
common_element('title', NULL, $notice->created); common_element('title', NULL, $profile->nickname."'s status on ".common_date_string($notice->created));
common_element('link', NULL, $nurl); common_element('link', NULL, $nurl);
common_element('description', NULL, $notice->content); common_element('description', NULL, $notice->content);
common_element('dc:date', NULL, common_date_w3dtf($notice->created)); common_element('dc:date', NULL, common_date_w3dtf($notice->created));