Skip to content

Commit 5b08b88

Browse files
committed
Add username to string fields in JsonView. Usernames should always be expected to be presented as strings.
1 parent 19752cc commit 5b08b88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/JsonView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function buildOutput($content)
2222
// Don't use JSON_NUMERIC_CHECK because it eats things (e.g. talk stubs)
2323

2424
// Specify a list of fields to NOT convert to numbers
25-
$this->string_fields = array("stub", "track_name", "comment");
25+
$this->string_fields = array("stub", "track_name", "comment", "username");
2626

2727
$output = $this->numericCheck($content);
2828

0 commit comments

Comments
 (0)