mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 23:13:33 +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
|
end
|
||||||
|
|
||||||
def client_secret
|
def client_secret
|
||||||
object.secret
|
object.secret if object.confidential?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue