aboutsummaryrefslogtreecommitdiff
path: root/juick-www
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-05-21 22:51:44 +0300
committerGravatar Vitaly Takmazov2018-05-21 23:16:25 +0300
commitf800eaa88d4b03a424b568cf0fb423ede19cf4fb (patch)
tree4f3f7161a332e1d348ab22dbf16a5ec46991de94 /juick-www
parent959effbbad1f8bbf3f90879212732a2e42011b22 (diff)
www: fix websocket replies formatting
Diffstat (limited to 'juick-www')
-rw-r--r--juick-www/src/main/assets/scripts.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-www/src/main/assets/scripts.js b/juick-www/src/main/assets/scripts.js
index 63170d49..2cf50ef9 100644
--- a/juick-www/src/main/assets/scripts.js
+++ b/juick-www/src/main/assets/scripts.js
@@ -199,7 +199,7 @@ function wsIncomingReply(msg) {
if (msg.replyto > 0) {
msgNum += ` ${i18n('message.inReplyTo')} <a href="#${msg.replyto}">/${msg.replyto}</a>`;
}
- let photoDiv = (msg.attach === undefined) ? '' : `
+ let photoDiv = (msg.attach == null) ? '' : `
<div class="msg-media"><a href="//i.juick.com/p/${msg.mid}-${msg.rid}.${msg.attach}">
<img src="//i.juick.com/photos-512/${msg.mid}-${msg.rid}.${msg.attach}"/></a>
</div>`;
@@ -211,7 +211,7 @@ function wsIncomingReply(msg) {
<a href="/${msg.user.uname}/"><img src="//i.juick.com/a/${msg.user.uid}.png" alt="${msg.user.uname}"/></a>
</div>
<div class="msg-ts">
- <a href="/${msg.mid}#${msg.rid}" title="${msg.timestamp}GMT">${msg.timestamp}</a>
+ <a href="/m/${msg.mid}#${msg.rid}" title="${msg.timestamp}GMT">${msg.timestamp}</a>
</div>
</div>
<div class="msg-txt">${killy.format(msg.body, msg.mid, false)}</div>${photoDiv}