mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-08 19:35:11 +01:00
Only return client_secret for confidential clients
This commit is contained in:
parent
190700578b
commit
ff7dd02d04
@ -8,6 +8,6 @@ class REST::CredentialApplicationSerializer < REST::ApplicationSerializer
|
||||
end
|
||||
|
||||
def client_secret
|
||||
object.secret
|
||||
object.secret if object.confidential?
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user