summaryrefslogtreecommitdiff
path: root/plugins/Sitemap/SitemapPlugin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-10 10:03:57 -0400
committerEvan Prodromou <evan@status.net>2010-06-01 13:52:27 -0700
commit9e592baa39dfab0c1e09c4356fb8d434379797c3 (patch)
treee0f714157133171f6cc1d8e8cf26b015b0e71266 /plugins/Sitemap/SitemapPlugin.php
parentd65a65756b88347b208b10f6abd2573d7703b6d5 (diff)
move USERS_PER_MAP to plugin
Diffstat (limited to 'plugins/Sitemap/SitemapPlugin.php')
-rw-r--r--plugins/Sitemap/SitemapPlugin.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Sitemap/SitemapPlugin.php b/plugins/Sitemap/SitemapPlugin.php
index bb404cd25..40263aaee 100644
--- a/plugins/Sitemap/SitemapPlugin.php
+++ b/plugins/Sitemap/SitemapPlugin.php
@@ -47,6 +47,8 @@ if (!defined('STATUSNET')) {
class SitemapPlugin extends Plugin
{
+ const USERS_PER_MAP = 25000;
+
/**
* Load related modules when needed
*
@@ -85,6 +87,7 @@ class SitemapPlugin extends Plugin
{
$m->connect('sitemapindex.xml',
array('action' => 'sitemapindex'));
+
$m->connect('/sitemaps/notice/:year/:month/:day/:index.xml',
array('action' => 'noticesitemap'),
array('year' => '[0-9]{4}',