From 541b4f5d74ae1c6fc12677ec80585f17b00e1e6d Mon Sep 17 00:00:00 2001 From: erqan Date: Thu, 19 Jun 2014 12:51:30 +0300 Subject: [PATCH] picking "replied to" data from RT content (fixing second part of #159) --- js/twister_formatpost.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/twister_formatpost.js b/js/twister_formatpost.js index 2cf3a04..5b40934 100644 --- a/js/twister_formatpost.js +++ b/js/twister_formatpost.js @@ -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")); }