summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-20 09:59:02 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-20 09:59:02 -0500
commit673e7d2559dd0e0fe1405da60081946e6238251a (patch)
tree9890ca2982078d73c5b85becc013c9faa2fc40bf
parentc0497d28f441d5073736af664c8495a402e7092d (diff)
parent1abeaf931e2e22806cbf747690df3a3350b401f8 (diff)
Merge branch '0.7.x' of evan@dev.controlyourself.ca:/var/www/evan into 0.7.x
-rw-r--r--lib/rssaction.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/rssaction.php b/lib/rssaction.php
index 131e8ac65..66c2d9e8c 100644
--- a/lib/rssaction.php
+++ b/lib/rssaction.php
@@ -38,6 +38,7 @@ class Rss10Action extends Action
var $creators = array();
var $limit = DEFAULT_RSS_LIMIT;
+ var $notices = null;
/**
* Constructor
@@ -93,6 +94,9 @@ class Rss10Action extends Action
function handle($args)
{
+ // Get the list of notices
+ $this->notices = $this->getNotices();
+ // Parent handling, including cache check
parent::handle($args);
$this->showRss($this->limit);
}
@@ -258,5 +262,25 @@ class Rss10Action extends Action
{
$this->elementEnd('rdf:RDF');
}
+
+ /**
+ * When was this page last modified?
+ *
+ */
+
+ function lastModified()
+ {
+ if (empty($this->notices)) {
+ return null;
+ }
+
+ if (count($this->notices) == 0) {
+ return null;
+ }
+
+ // FIXME: doesn't handle modified profiles, avatars, deleted notices
+
+ return strtotime($this->notices[0]->created);
+ }
}