This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix 404 for GET /api/v1/push/subscription (
#7472
)
My bad...
pull/4/head
Eugen Rochko
6 years ago
committed by
GitHub
parent
97e43ec5f0
commit
416f644505
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
2 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
app/controllers/api/v1/push/subscriptions_controller.rb
+ 2
- 0
app/controllers/api/v1/push/subscriptions_controller.rb
View File
@ -21,6 +21,8 @@ class Api::V1::Push::SubscriptionsController < Api::BaseController
end
end
def
show
def
show
raise
ActiveRecord
::
RecordNotFound
if
@web_subscription
.
nil?
render
json
:
@web_subscription
,
serializer
:
REST
::
WebPushSubscriptionSerializer
render
json
:
@web_subscription
,
serializer
:
REST
::
WebPushSubscriptionSerializer
end
end
Write
Preview
Loading…
Cancel
Save