mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-24 02:51:43 +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
|
end
|
||||||
|
|
||||||
def client_secret
|
def client_secret
|
||||||
object.secret
|
object.secret if object.confidential?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user