Revert "Add partial accounts to collections endpoint (#38919)" (#39128)

This commit is contained in:
David Roetzel authored and GitHub committed 2026-05-21 13:45:09 +00:00
1 parent e54f927149
commit e18ca373eb
8 files changed
+2 -140

No files matched your search

-12
View File
@@ -199,16 +199,4 @@ RSpec.describe Collection do
expect(subject.to_log_permalink).to eq ActivityPub::TagManager.instance.uri_for(subject)
end
end
describe '#top_items' do
let(:collection) { Fabricate(:collection) }
before do
5.times { |i| Fabricate(:collection_item, collection:, position: i + 1) }
end
it 'returns the topmost four items' do
expect(collection.top_items.map(&:position)).to contain_exactly(1, 2, 3, 4)
end
end
end