about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorErin <sylphofelectricity@gmail.com>2017-12-10 19:07:43 -0600
committerErin <sylphofelectricity@gmail.com>2017-12-10 19:07:43 -0600
commitf080a9fac777e446554c39120c899732eec47b6f (patch)
treec8bc7556bdfe3939222df77f8437af0375d8af12 /app/controllers
parent6bd18e43ba6ce74837b813d68b5c96e4f696069f (diff)
filter local-only toots from AP outboxes
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/activitypub/outboxes_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/activitypub/outboxes_controller.rb b/app/controllers/activitypub/outboxes_controller.rb
index 9f97ff622..e19ca6521 100644
--- a/app/controllers/activitypub/outboxes_controller.rb
+++ b/app/controllers/activitypub/outboxes_controller.rb
@@ -4,7 +4,7 @@ class ActivityPub::OutboxesController < Api::BaseController
   before_action :set_account
 
   def show
-    @statuses = @account.statuses.permitted_for(@account, current_account).paginate_by_max_id(20, params[:max_id], params[:since_id])
+    @statuses = @account.statuses.not_local_only.permitted_for(@account, current_account).paginate_by_max_id(20, params[:max_id], params[:since_id])
     @statuses = cache_collection(@statuses, Status)
 
     render json: outbox_presenter, serializer: ActivityPub::CollectionSerializer, adapter: ActivityPub::Adapter, content_type: 'application/activity+json'