picking "replied to" data from RT content

(fixing second part of #159)
This commit is contained in:
erqan 2014-06-19 12:51:30 +03:00
parent 6f1344a016
commit 541b4f5d74

View File

@ -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"));
}