0
0
Fork 0

Add VAPID public key to instance serializer (#28006)

Co-authored-by: Renaud Chaput <renchap@gmail.com>
This commit is contained in:
Emelia Smith 2023-11-29 09:34:36 +01:00 committed by GitHub
parent c40cfc5d09
commit 603b245cc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 1 deletions

View file

@ -2,7 +2,10 @@
class REST::ApplicationSerializer < ActiveModel::Serializer
attributes :id, :name, :website, :scopes, :redirect_uri,
:client_id, :client_secret, :vapid_key
:client_id, :client_secret
# NOTE: Deprecated in 4.3.0, needs to be removed in 5.0.0
attribute :vapid_key
def id
object.id.to_s