Commit 180f43bdcf
Unsigned
Layout: unified · split
src/Model/ApiService.php +4 −1
| @@ -54,6 +54,9 @@ function ParseUser(mixed $api_results, string $inline_title): string | |||
| 54 | if ($api_results == "null") { | 54 | if ($api_results == "null") { |
| 55 | return '<p>ERROR: User not found.</p>'; | 55 | return '<p>ERROR: User not found.</p>'; |
| 56 | } else { | 56 | } else { |
| 57 | // TODO: Create function to format $about using the following guidelines | ||
| 58 | // : https://news.ycombinator.com/formatdoc | ||
| 59 | // : hint: nl2br() will solve the first formatting requirement | ||
| 57 | $about = $api_results['about']; | 60 | $about = $api_results['about']; |
| 58 | $karma = $api_results['karma']; | 61 | $karma = $api_results['karma']; |
| 59 | $created = date('Y-m-d h:m:s', $api_results['created']); | 62 | $created = date('Y-m-d h:m:s', $api_results['created']); |
| @@ -215,4 +218,4 @@ function ConstructPoll($api_results): string | |||
| 215 | function ConstructPollOpt($api_results): string | 218 | function ConstructPollOpt($api_results): string |
| 216 | { | 219 | { |
| 217 | return 'TODO'; | 220 | return 'TODO'; |
| 218 | }\ No newline at end of file | 221 | } |