diff options
author | Christian Cleberg <hello@cleberg.net> | 2023-06-14 22:19:17 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2023-06-14 22:19:17 -0500 |
commit | 180f43bdcfb0caee65df510bf98b36e313f3fd07 (patch) | |
tree | ba77865df1869a48bd63ab1025b48a22cb3bf0b8 | |
parent | 49efb238b879bce764d04dad99c7a169e80f93dd (diff) | |
download | hn-180f43bdcfb0caee65df510bf98b36e313f3fd07.tar.gz hn-180f43bdcfb0caee65df510bf98b36e313f3fd07.tar.bz2 hn-180f43bdcfb0caee65df510bf98b36e313f3fd07.zip |
add TODO on formatting user summaries
-rw-r--r-- | src/Model/ApiService.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Model/ApiService.php b/src/Model/ApiService.php index 5535c12..4577984 100644 --- a/src/Model/ApiService.php +++ b/src/Model/ApiService.php @@ -54,6 +54,9 @@ function ParseUser(mixed $api_results, string $inline_title): string if ($api_results == "null") { return '<p>ERROR: User not found.</p>'; } else { + // TODO: Create function to format $about using the following guidelines + // : https://news.ycombinator.com/formatdoc + // : hint: nl2br() will solve the first formatting requirement $about = $api_results['about']; $karma = $api_results['karma']; $created = date('Y-m-d h:m:s', $api_results['created']); @@ -215,4 +218,4 @@ function ConstructPoll($api_results): string function ConstructPollOpt($api_results): string { return 'TODO'; -}
\ No newline at end of file +} |