Commit 9fcf6929aa
Unsigned
Layout: unified · split
index.php +4 −2
| @@ -140,8 +140,10 @@ function get_stories($api_url, $inline_title) { | |||
| 140 | 140 | ||
| 141 | $html = '<div><a href="' . $sub_response['url'] . '">' . $sub_response['title'] . '</a>'; | 141 | $html = '<div><a href="' . $sub_response['url'] . '">' . $sub_response['title'] . '</a>'; |
| 142 | $html .= '<p><time datetime="' . date('Y-m-d h:m:s', $sub_response['time']) . '">'; | 142 | $html .= '<p><time datetime="' . date('Y-m-d h:m:s', $sub_response['time']) . '">'; |
| 143 | $html .= date('Y-m-d h:m:s', $sub_response['time']) . '</time> by '; | 143 | $html .= date('Y-m-d h:m:s', $sub_response['time']) . '</time> by <a'; |
| 144 | $html .= $sub_response['by'] . ' | ' . $sub_response['score'] . ' points</p></div>'; | 144 | $html .= 'href="/user/'. $sub_response['by'] . '">'; |
| 145 | $html .= $sub_response['by'] . ' | ' . $sub_response['score']; | ||
| 146 | $html .= 'points</p></div>'; | ||
| 145 | $html_output .= $html; | 147 | $html_output .= $html; |
| 146 | } | 148 | } |
| 147 | 149 | ||