summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/public.php4
-rw-r--r--actions/publicrss.php4
-rw-r--r--actions/twitapistatuses.php5
3 files changed, 10 insertions, 3 deletions
diff --git a/actions/public.php b/actions/public.php
index b66a3f0f1..f99215dad 100644
--- a/actions/public.php
+++ b/actions/public.php
@@ -63,7 +63,9 @@ class PublicAction extends StreamAction {
# XXX: sub-optimal
- $notice->is_local = 1;
+ if (common_config('public', 'localonly')) {
+ $notice->is_local = 1;
+ }
$notice->orderBy('created DESC, notice.id DESC');
diff --git a/actions/publicrss.php b/actions/publicrss.php
index 185a4ff78..98a1908ab 100644
--- a/actions/publicrss.php
+++ b/actions/publicrss.php
@@ -38,7 +38,9 @@ class PublicrssAction extends Rss10Action {
# XXX: bad performance
- $notice->is_local = 1;
+ if (common_config('public', 'localonly')) {
+ $notice->is_local = 1;
+ }
$notice->orderBy('created DESC, notice.id DESC');
diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php
index 2f95d90c9..3041240dd 100644
--- a/actions/twitapistatuses.php
+++ b/actions/twitapistatuses.php
@@ -61,7 +61,10 @@ class TwitapistatusesAction extends TwitterapiAction {
# 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();