mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-29 08:16:58 +00: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 a new issue