From 99c83acf6295d2d40b228be2bcff41689a0d5d5b Mon Sep 17 00:00:00 2001 From: Killy Date: Tue, 24 Oct 2017 02:10:03 +0300 Subject: www: update incoming reply format --- juick-www/src/main/static/scripts.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'juick-www') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index ad6d2e66..4cd1bc82 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -182,30 +182,28 @@ function isTreeMode() { } function wsIncomingReply(msg) { - const unsetProto = (url) => url.replace(/^(https?:)?(?=\/\/)/i, ''); let msgNum = '/' + msg.rid; if (msg.replyto > 0) { msgNum += ` ${i18n('message.inReplyTo')} /${msg.replyto}`; } - let photoDiv = (msg.photo === undefined) ? '' : ` + let photoDiv = (msg.attach === undefined) ? '' : `
- +
`; let msgContHtml = `
- @${msg.user.uname}: + ${msg.user.uname}:
${msg.user.uname}
-
${killy.format(msg.body, msg.mid, false)}
${photoDiv} - +
`; let li = document.createElement('li'); -- cgit v1.2.3