mirror of https://github.com/mastodon/mastodon
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
|
end
|
||||||
|
|
||||||
def client_secret
|
def client_secret
|
||||||
object.secret
|
object.secret if object.confidential?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue