aboutsummaryrefslogtreecommitdiff
path: root/lib.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib.js')
-rw-r--r--lib.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.js b/lib.js
index 97f8db3..b7919cc 100644
--- a/lib.js
+++ b/lib.js
@@ -169,7 +169,7 @@ function renderMessage (post) {
if (post.content.reply) {
message.appendChild(h('span', [
're: ',
- h('a', {href: '#' + post.content.reply}, [post.content.reply])
+ h('a', {href: '#' + post.content.reply}, [post.content.reply.substring(0, 10) + '...'])
]))
}
@@ -234,7 +234,7 @@ function getImage (id) {
}
function getName (id) {
- var name = h('span', [id])
+ var name = h('span', [id.substring(0, 10) + '...'])
if (localStorage[id]) {
var log = JSON.parse(localStorage[id])
for (var i=0; i < log.length; i++) {