From ce738a53155506be1ef52ca99613e2d40917391a Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 14 Nov 2014 17:45:07 -0200 Subject: [PATCH] quick hack to prevent mixing old hashtag requests into current modal --- js/twister_actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/twister_actions.js b/js/twister_actions.js index 8fa780a..3be5e85 100644 --- a/js/twister_actions.js +++ b/js/twister_actions.js @@ -307,7 +307,7 @@ function requestHashtag(postboard,hashtag,resource, timeoutArgs) { } function processHashtag(postboard, hashtag, data) { - if( data ) { + if( data && window.location.hash.indexOf(hashtag) != -1 ) { for( var i = data.length-1; i >= 0; i-- ) { var userpost = data[i]["userpost"]; var key = userpost["n"] + ";" + userpost["time"];