Skip to content

Pubsubhubbub::DistributionWorker tests and adjustments#2954

Merged
Gargron merged 1 commit intomasterfrom
feature-tests-for-push-distribution
May 10, 2017
Merged

Pubsubhubbub::DistributionWorker tests and adjustments#2954
Gargron merged 1 commit intomasterfrom
feature-tests-for-push-distribution

Conversation

@Gargron
Copy link
Copy Markdown
Member

@Gargron Gargron commented May 9, 2017

  • Add spec for Pubsubhubbub::DistributionWorker.
  • PuSH-deliver public items to all subscribers.
  • IDN-normalize callback URLs for subscriptions on insert.

to all subscribers. IDN-normalize callback URLs for subscriptions on insert.
@callback = callback
@secret = secret
@account = account
@callback = Addressable::URI.parse(callback).normalize.to_s
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this stay as a straight assignment, and then add a normalized_callback_url (or similar) method below?

domains = account.followers_domains
@account = stream_entry.account
@payload = AtomSerializer.render(AtomSerializer.new.feed(@account, [stream_entry]))
@domains = @account.followers_domains
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see @domains used below, but the others could stay locals?

@Gargron Gargron merged commit 3a38322 into master May 10, 2017
@Gargron Gargron deleted the feature-tests-for-push-distribution branch May 10, 2017 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants