Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
3d492795
Commit
3d492795
authored
Dec 06, 2018
by
minibikini
Browse files
clean up
parent
0020b226
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/mastodon_api/views/push_subscription_view.ex
View file @
3d492795
...
...
@@ -6,9 +6,7 @@ def render("push_subscription.json", %{subscription: subscription}) do
%{
id:
to_string
(
subscription
.
id
),
endpoint:
subscription
.
endpoint
,
alerts:
Map
.
get
(
subscription
.
data
,
"alerts"
),
# TODO: generate VAPID server key
server_key:
"N/A"
alerts:
Map
.
get
(
subscription
.
data
,
"alerts"
)
}
end
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment