krz/hn
A brutalist web client for Hacker News.
clone: git clone https://gitbay.org/krz/hn.git
180f43bdcfb0caee65df510bf98b36e313f3fd07
unsigned
author: Christian Cleberg <hello@cleberg.net> · 2023-06-15T03:19:17Z
src/Model/ApiService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) @@ -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 +}