Trim name
This commit is contained in:
parent
8cb223e862
commit
a5c4f900a2
1 changed files with 2 additions and 1 deletions
|
@ -174,7 +174,8 @@ class ApiHelper {
|
|||
);
|
||||
}
|
||||
|
||||
final name = json.decode(profile.body)["displayname"];
|
||||
final fullName = (json.decode(profile.body)["displayname"] as String);
|
||||
final name = fullName.length <= 20 ? fullName : fullName.substring(0, 20);
|
||||
|
||||
return Response.ok(
|
||||
jsonEncode({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue