]> cat aescling's git repositories - mastodon.git/commit
Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124)
authorEugen <eugen@zeonfederated.com>
Fri, 7 Apr 2017 03:56:56 +0000 (05:56 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Apr 2017 03:56:56 +0000 (05:56 +0200)
commit6d6a429af8fe4bd92ed497f401676353fdc603e0
treeb8b1e8d88c01034b7c7ca9320ae4e9235e4b8b2a
parent31597fd37717db79edb69a64c97b1dca2f9a8a08
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
21 files changed:
Gemfile
Gemfile.lock
app/controllers/accounts_controller.rb
app/controllers/stream_entries_controller.rb
app/lib/atom_serializer.rb [new file with mode: 0644]
app/lib/tag_manager.rb
app/models/stream_entry.rb
app/services/after_block_service.rb
app/services/authorize_follow_service.rb
app/services/block_service.rb
app/services/concerns/stream_entry_renderer.rb
app/services/favourite_service.rb
app/services/follow_service.rb
app/services/reject_follow_service.rb
app/services/unblock_service.rb
app/services/unfavourite_service.rb
app/services/unfollow_service.rb
app/views/accounts/show.atom.ruby [deleted file]
app/views/stream_entries/show.atom.ruby [deleted file]
app/workers/pubsubhubbub/delivery_worker.rb
app/workers/pubsubhubbub/distribution_worker.rb