Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124)
* Rewrite Atom generation from stream entries to use Ox instead of Nokogiri::Builder StreamEntry is now limited to only statuses, which allows some optimization. Removed extra queries on AccountsController#show. AtomSerializer instead of AtomBuilderHelper used in AccountsController#show, StreamEntriesController#show, StreamEntryRenderer and PubSubHubbub::DistributionWorker PubSubHubbub::DistributionWorker moves n+1 DomainBlock query to PubSubHubbub::DeliveryWorker instead. All Salmon slaps that aren't based on StreamEntry still use AtomBuilderHelper and Nokogiri * All Salmon slaps now use Ox instead of Nokogiri. No touch from status on account
Showing
- Gemfile 1 addition, 0 deletionsGemfile
- Gemfile.lock 2 additions, 0 deletionsGemfile.lock
- app/controllers/accounts_controller.rb 2 additions, 1 deletionapp/controllers/accounts_controller.rb
- app/controllers/stream_entries_controller.rb 3 additions, 1 deletionapp/controllers/stream_entries_controller.rb
- app/lib/atom_serializer.rb 348 additions, 0 deletionsapp/lib/atom_serializer.rb
- app/lib/tag_manager.rb 2 additions, 0 deletionsapp/lib/tag_manager.rb
- app/models/stream_entry.rb 10 additions, 18 deletionsapp/models/stream_entry.rb
- app/services/after_block_service.rb 9 additions, 9 deletionsapp/services/after_block_service.rb
- app/services/authorize_follow_service.rb 1 addition, 26 deletionsapp/services/authorize_follow_service.rb
- app/services/block_service.rb 1 addition, 17 deletionsapp/services/block_service.rb
- app/services/concerns/stream_entry_renderer.rb 1 addition, 2 deletionsapp/services/concerns/stream_entry_renderer.rb
- app/services/favourite_service.rb 1 addition, 21 deletionsapp/services/favourite_service.rb
- app/services/follow_service.rb 3 additions, 41 deletionsapp/services/follow_service.rb
- app/services/reject_follow_service.rb 1 addition, 26 deletionsapp/services/reject_follow_service.rb
- app/services/unblock_service.rb 1 addition, 17 deletionsapp/services/unblock_service.rb
- app/services/unfavourite_service.rb 1 addition, 21 deletionsapp/services/unfavourite_service.rb
- app/services/unfollow_service.rb 1 addition, 20 deletionsapp/services/unfollow_service.rb
- app/views/accounts/show.atom.ruby 0 additions, 27 deletionsapp/views/accounts/show.atom.ruby
- app/views/stream_entries/show.atom.ruby 0 additions, 9 deletionsapp/views/stream_entries/show.atom.ruby
- app/workers/pubsubhubbub/delivery_worker.rb 3 additions, 0 deletionsapp/workers/pubsubhubbub/delivery_worker.rb
Loading
Please register or sign in to comment