forked from GNUsocial/gnu-social
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.
This commit is contained in:
parent
6d39a75137
commit
3a34d7e4ea
@ -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);
|
||||
|
||||
$notice->orderBy('created');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user