ochorocho / tdk

7 stars 4 forks source link

[BUGFIX] Add fallbacks for display name #4

Closed susannemoog closed 2 years ago

susannemoog commented 2 years ago

In my case, $userData['display_name'] is not set, instead the API returns my name in the ['name'] field. To make absolutely sure a value is set, the last fallback is to the given username.

ochorocho commented 2 years ago

@susannemoog thanks :-)