# XXX: sub-optimal
- $notice->is_local = 1;
+ if (common_config('public', 'localonly')) {
+ $notice->is_local = 1;
+ }
$notice->orderBy('created DESC, notice.id DESC');
# XXX: bad performance
- $notice->is_local = 1;
+ if (common_config('public', 'localonly')) {
+ $notice->is_local = 1;
+ }
$notice->orderBy('created DESC, notice.id DESC');
# XXX: sub-optimal performance
- $notice->is_local = 1;
+ if (common_config('public', 'localonly')) {
+ $notice->is_local = 1;
+ }
+
$notice->orderBy('created DESC, notice.id DESC');
$notice->limit($MAX_PUBSTATUSES);
$cnt = $notice->find();
array('blacklist' => array()),
'avatar' =>
array('server' => NULL),
+ 'public' =>
+ array('localonly' => true),
'theme' =>
array('server' => NULL),
'xmpp' =>