aboutsummaryrefslogtreecommitdiff
path: root/src/Model
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model')
-rw-r--r--src/Model/ApiService.php5
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
+}