Commit 180f43bdcf

180f43bdcfb0caee65df510bf98b36e313f3fd07

parent: 49efb238b8

Unsigned

cmc <hello@cleberg.net> · 2023-06-15 03:19 UTC

add TODO on formatting user summaries

Layout: unified · split

src/Model/ApiService.php +4 −1
@@ -54,6 +54,9 @@ function ParseUser(mixed $api_results, string $inline_title): string
5454 if ($api_results == "null") {
5555 return '<p>ERROR: User not found.</p>';
5656 } 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
5760 $about = $api_results['about'];
5861 $karma = $api_results['karma'];
5962 $created = date('Y-m-d h:m:s', $api_results['created']);
@@ -215,4 +218,4 @@ function ConstructPoll($api_results): string
215218function ConstructPollOpt($api_results): string
216219{
217220 return 'TODO';
218}
\ No newline at end of file
221}