add handling of new userpost property sig_wort finally

This commit is contained in:
Simon Grim 2015-08-13 01:07:13 +05:00
parent 5da5cde79a
commit f251cf0949
2 changed files with 6 additions and 0 deletions

View File

@ -293,6 +293,8 @@ function newRtMsg(postData, msg) {
return; return;
} }
userpost.sig_wort = undefined;
var rtObj = {sig_userpost: sig_userpost, userpost: userpost}; var rtObj = {sig_userpost: sig_userpost, userpost: userpost};
if (typeof lastPostId !== 'undefined') { if (typeof lastPostId !== 'undefined') {

View File

@ -70,6 +70,10 @@ function postToElem(post, kind, promoted) {
// Obtain data from userpost // Obtain data from userpost
var userpost = post.userpost; var userpost = post.userpost;
if (post.sig_wort)
userpost.sig_wort = post.sig_wort;
if (userpost.rt) { if (userpost.rt) {
rt = userpost.rt; rt = userpost.rt;
if (userpost.msg) { if (userpost.msg) {