aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/assets/scripts.js
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/assets/scripts.js')
-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}