aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2023-06-01 10:12:15 -0500
committerChristian Cleberg <hello@cleberg.net>2023-06-01 10:12:15 -0500
commit5c33255b6ad3906c5c4487f29b04283d84275aaf (patch)
treec0c3eb5567dc64dd18e63e603dd37cce815e409b
parentf7275853993e4b01793bc9078f7a0a4865aaf334 (diff)
downloadhn-5c33255b6ad3906c5c4487f29b04283d84275aaf.tar.gz
hn-5c33255b6ad3906c5c4487f29b04283d84275aaf.tar.bz2
hn-5c33255b6ad3906c5c4487f29b04283d84275aaf.zip
fix: user link spacing
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 56553a2..c45312d 100644
--- a/index.php
+++ b/index.php
@@ -142,7 +142,7 @@ function get_stories($api_url, $inline_title) {
$html = '<div><a href="' . $sub_response['url'] . '">' . $sub_response['title'] . '</a>';
$html .= '<p><time datetime="' . date('Y-m-d h:m:s', $sub_response['time']) . '">';
$html .= date('Y-m-d h:m:s', $sub_response['time']) . '</time> by <a';
- $html .= 'href="/user/'. $sub_response['by'] . '">';
+ $html .= ' href="/user/'. $sub_response['by'] . '">';
$html .= $sub_response['by'] . '</a> | ' . $sub_response['score'];
$html .= ' points</p></div>';
$html_output .= $html;
@@ -187,7 +187,7 @@ function get_user(string $api_url, string $inline_title) {
$html = '<div><a href="' . $sub_response['url'] . '">' . $sub_response['title'] . '</a>';
$html .= '<p><time datetime="' . date('Y-m-d h:m:s', $sub_response['time']) . '">';
$html .= date('Y-m-d h:m:s', $sub_response['time']) . '</time> by <a';
- $html .= 'href="/user/'. $sub_response['by'] . '">';
+ $html .= ' href="/user/'. $sub_response['by'] . '">';
$html .= $sub_response['by'] . '</a> | ' . $sub_response['score'];
$html .= ' points</p></div>';
$html_output .= $html;