We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 3a34d7e4 authored by Evan Prodromou's avatar Evan Prodromou

Only show local public notices in sitemap

Only show local public notices in sitemap. Only do counts for them
in the sitemap index, and only show them in the notice sitemap.
parent 6d39a751
......@@ -208,6 +208,7 @@ class Sitemap_notice_count extends Memcached_DataObject
$notice = new Notice();
$notice->whereAdd('created BETWEEN "'.$d.' 00:00:00" AND "'.self::incrementDay($d).' 00:00:00"');
$notice->whereAdd('is_local = ' . Notice::LOCAL_PUBLIC);
$n = $notice->count();
return $n;
......@@ -105,7 +105,7 @@ class NoticesitemapAction extends SitemapAction
$notice->whereAdd("created >= '$begindt'");
$notice->whereAdd("created < '$enddt'");
$notice->whereAdd('is_local != 0');
$notice->whereAdd('is_local = ' . Notice::LOCAL_PUBLIC);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment