mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-13 08:27:51 +00:00
use peekpost in "requestRepliedBefore"
This commit is contained in:
parent
80fb930ce1
commit
3f48993f3e
@ -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)];
|
||||
|
Loading…
Reference in New Issue
Block a user