Some minor change and spec for Account (#3813)
* Introduce domains method to Account relation Account had followers_domains method, which was excessively specific. Let relation of Account have domains method instead. * Move follow_mapping in Account to AccountInteractions * Introduce shared examples for AccountAvatar inclusion * Cover Account more
This commit is contained in:
committed by
Eugen Rochko
parent
98fab24bea
commit
e27f792c24
@ -33,7 +33,7 @@ class Pubsubhubbub::DistributionWorker
|
||||
return if stream_entries.empty?
|
||||
|
||||
@payload = AtomSerializer.render(AtomSerializer.new.feed(@account, stream_entries))
|
||||
@domains = @account.followers_domains
|
||||
@domains = @account.followers.domains
|
||||
|
||||
Pubsubhubbub::DeliveryWorker.push_bulk(@subscriptions.reject { |s| !allowed_to_receive?(s.callback_url) }) do |subscription|
|
||||
[subscription.id, @payload]
|
||||
|
Reference in New Issue
Block a user