add missed check for userpost.rt.msg emptiness in postToElem()

This commit is contained in:
Simon Grim 2016-03-25 03:32:56 +05:00
parent a26ff53c76
commit 9fcadc9634

View File

@ -60,7 +60,7 @@ function postToElem(post, kind, promoted) {
if (post.sig_wort)
userpost.sig_wort = post.sig_wort;
if (userpost.rt) {
if (userpost.rt && userpost.rt.msg) {
rt = userpost.rt;
if (userpost.msg) {
username = userpost.n;