Browse Source

add handling of new userpost property `sig_wort` finally

master
Simon Grim 9 years ago
parent
commit
f251cf0949
  1. 2
      js/twister_actions.js
  2. 4
      js/twister_formatpost.js

2
js/twister_actions.js

@ -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') {

4
js/twister_formatpost.js

@ -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) {

Loading…
Cancel
Save