diff options
| author | Christian Cleberg <[email protected]> | 2023-06-01 09:48:58 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2023-06-01 09:48:58 -0500 |
| commit | 9fcf6929aa23c0eee6c2a9bf5c29d4e2015ba936 (patch) | |
| tree | 1f966b5b9ab890509e9a97a42c84ebbd651ed804 | |
| parent | 2a57019b0c2d8fa5cb466aef23a3925488c47b84 (diff) | |
| download | hn-9fcf6929aa23c0eee6c2a9bf5c29d4e2015ba936.tar.gz hn-9fcf6929aa23c0eee6c2a9bf5c29d4e2015ba936.tar.bz2 hn-9fcf6929aa23c0eee6c2a9bf5c29d4e2015ba936.zip | |
format line lengths
| -rw-r--r-- | index.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -140,8 +140,10 @@ 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 '; - $html .= $sub_response['by'] . ' | ' . $sub_response['score'] . ' points</p></div>'; + $html .= date('Y-m-d h:m:s', $sub_response['time']) . '</time> by <a'; + $html .= 'href="/user/'. $sub_response['by'] . '">'; + $html .= $sub_response['by'] . ' | ' . $sub_response['score']; + $html .= 'points</p></div>'; $html_output .= $html; } |
