Merge commit '5f5dfd7823297d68af1e78b1e56614d2e5aba104' into glitch-soc/merge-upstream
Conflicts: - `spec/lib/activitypub/activity/create_spec.rb`: glitch-soc had extra tests. Added upstream's new tests alongside the glitch-soc-specific ones.
This commit is contained in:
commit
9ffc425173
10 files changed
+511
-65
No files matched your search
@@ -6,6 +6,8 @@ class Api::Web::PushSubscriptionsController < Api::Web::BaseController
|
||||
before_action :destroy_previous_subscriptions, only: :create, if: :prior_subscriptions?
|
||||
after_action :update_session_with_subscription, only: :create
|
||||
|
||||
skip_forgery_protection only: :destroy
|
||||
|
||||
def create
|
||||
@push_subscription = ::Web::PushSubscription.create!(web_push_subscription_params)
|
||||
|
||||
|
||||
Reference in new issue
Block a user