diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-03-10 17:20:43 -0700 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-03-10 17:20:43 -0700 |
commit | a989c58c11004f850ff0d7bb633df570c7f68f45 (patch) | |
tree | 6ef0f3d800d46d998a7c5c7204e60c015f1bbec2 | |
parent | df07786f28e89474f66a910eeb3d454e3a5b75ba (diff) |
Fix tag URIs in Atom feeds for search thru the API
-rw-r--r-- | actions/twitapisearchatom.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/actions/twitapisearchatom.php b/actions/twitapisearchatom.php index 3ab82bfb6..c0e55df05 100644 --- a/actions/twitapisearchatom.php +++ b/actions/twitapisearchatom.php @@ -229,8 +229,8 @@ class TwitapisearchatomAction extends TwitterapiAction 'xmlns:twitter' => 'http://api.twitter.com/', 'xml:lang' => $lang)); - $year = date('Y'); - $this->element('id', null, "tag:$server,$year:search/$server"); + $taguribase = common_config('integration', 'taguri'); + $this->element('id', null, "tag:$taguribase:search/$server"); $site_uri = common_path(false); @@ -258,6 +258,7 @@ class TwitapisearchatomAction extends TwitterapiAction 'href' => $self_uri)); $this->element('title', null, "$this->query - $sitename Search"); + $this->element('updated', null, common_date_iso8601('now')); // refresh link @@ -308,9 +309,9 @@ class TwitapisearchatomAction extends TwitterapiAction $this->elementStart('entry'); - $year = date('Y', strtotime($notice->created)); + $taguribase = common_config('integration', 'taguri'); - $this->element('id', null, "tag:$server,$year:$notice->id"); + $this->element('id', null, "tag:$taguribase:$notice->id"); $this->element('published', null, common_date_w3dtf($notice->created)); $this->element('link', array('type' => 'text/html', 'rel' => 'alternate', |