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
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
215function ConstructPollOpt($api_results): string 218function ConstructPollOpt($api_results): string
216{ 219{
217 return 'TODO'; 220 return 'TODO';
218}\ No newline at end of file 221}