make the default scope depend on site/private

This commit is contained in:
Evan Prodromou
2011-07-01 21:50:04 -04:00
parent eb90389a22
commit 7e9c17bd15
4 changed files with 19 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ function newNotice($i, $tagmax)
{
global $userprefix;
$options = array('scope' => common_config('notice', 'defaultscope'));
$options = array('scope' => Notice::defaultScope());
$n = rand(0, $i - 1);
$user = User::staticGet('nickname', sprintf('%s%d', $userprefix, $n));