From 180f43bdcfb0caee65df510bf98b36e313f3fd07 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 14 Jun 2023 22:19:17 -0500 Subject: add TODO on formatting user summaries --- src/Model/ApiService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Model/ApiService.php') 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 '

ERROR: User not found.

'; } 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 +} -- cgit v1.2.3-70-g09d2