From 3f48993f3eca0b3bc08b4f431a9721ca1ab4bbe7 Mon Sep 17 00:00:00 2001 From: erqan Date: Tue, 10 Apr 2018 17:15:48 +0300 Subject: [PATCH] use peekpost in "requestRepliedBefore" --- js/twister_actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/twister_actions.js b/js/twister_actions.js index 8cdd6c7..28faa1a 100644 --- a/js/twister_actions.js +++ b/js/twister_actions.js @@ -26,7 +26,7 @@ function requestRepliedBefore(postLi) if( reply_n != undefined && reply_k != undefined ) { if (reply_n[0] !== '!') { - dhtget(reply_n, "post" + reply_k, "s", + twisterRpc("peekpost", [reply_n, parseInt(reply_k)], function (postLi, postFromJson) { if (postFromJson) { postLi.find('textarea').textcomplete('destroy'); // FIXME maybe we need to reset position instead (but curently it's cheaper) @@ -37,7 +37,7 @@ function requestRepliedBefore(postLi) $.MAL.relatedPostLoaded(); requestRepliedBefore(newStreamPost); } - }, postLi); + }, postLi, function(arg,ret) {console.log(ret)}); } else { //replied to a promoted post... try to get it.. var params = [1, parseInt(reply_k)];