]> cat aescling's git repositories - mastodon.git/commit
Ensure push subscription is immediately removed when application is revoked (#7548)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 19 May 2018 19:05:08 +0000 (21:05 +0200)
committerGitHub <noreply@github.com>
Sat, 19 May 2018 19:05:08 +0000 (21:05 +0200)
commit8378b72ebacc51e5e090faa527462b801e4c2803
tree92deefbf0e199119a486055ac18774d5a5b410f0
parent5910eb9b61da6eacf6b534d831da6e2f698e2703
Ensure push subscription is immediately removed when application is revoked (#7548)

* Ensure push subscription is immediately removed when application is revoked

* When token is revoked from app, unsubscribe too
app/controllers/oauth/authorized_applications_controller.rb
app/controllers/oauth/tokens_controller.rb [new file with mode: 0644]
app/models/web/push_subscription.rb
config/routes.rb
spec/controllers/oauth/authorized_applications_controller_spec.rb
spec/controllers/oauth/tokens_controller_spec.rb [new file with mode: 0644]
spec/fabricators/web_push_subscription_fabricator.rb
spec/fabricators/web_setting_fabricator.rb