Browse Source

Exclude local-only toots from atom feeds

closed-social-glitch-2
Thibaut Girka 6 years ago
committed by ThibG
parent
commit
759750801e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/accounts_controller.rb

+ 1
- 1
app/controllers/accounts_controller.rb View File

@ -32,7 +32,7 @@ class AccountsController < ApplicationController
format.atom do
@entries = @account.stream_entries.where(hidden: false).with_includes.paginate_by_max_id(PAGE_SIZE, params[:max_id], params[:since_id])
render xml: OStatus::AtomSerializer.render(OStatus::AtomSerializer.new.feed(@account, @entries.reject { |entry| entry.status.nil? }))
render xml: OStatus::AtomSerializer.render(OStatus::AtomSerializer.new.feed(@account, @entries.reject { |entry| entry.status.nil? || entry.status.local_only? }))
end
format.rss do

Loading…
Cancel
Save