Browse Source

picking "replied to" data from RT content

(fixing second part of #159)
master
erqan 10 years ago
parent
commit
541b4f5d74
  1. 5
      js/twister_formatpost.js

5
js/twister_formatpost.js

@ -69,6 +69,11 @@ function postToElem( post, kind ) { @@ -69,6 +69,11 @@ function postToElem( post, kind ) {
postData.attr('data-replied-to-screen-name', userpost["reply"]["n"]);
postData.attr('data-replied-to-id', userpost["reply"]["k"]);
postData.find('.post-expand').text(polyglot.t("Show conversation"));
} else if ( "rt" in userpost && "reply" in userpost["rt"] ) {
postData.attr('data-replied-to-screen-name', userpost["rt"]["reply"]["n"]);
postData.attr('data-replied-to-id', userpost["rt"]["reply"]["k"]);
postData.find('.post-expand').text(polyglot.t("Show conversation"));
}

Loading…
Cancel
Save