Browse Source

add handling of new userpost property `sig_wort` finally

master
Simon Grim 10 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) { @@ -293,6 +293,8 @@ function newRtMsg(postData, msg) {
return;
}
userpost.sig_wort = undefined;
var rtObj = {sig_userpost: sig_userpost, userpost: userpost};
if (typeof lastPostId !== 'undefined') {

4
js/twister_formatpost.js

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

Loading…
Cancel
Save