quick hack to prevent mixing old hashtag requests into current modal

This commit is contained in:
Miguel Freitas 2014-11-14 17:45:07 -02:00
parent b5baa85362
commit ce738a5315

View File

@ -307,7 +307,7 @@ function requestHashtag(postboard,hashtag,resource, timeoutArgs) {
} }
function processHashtag(postboard, hashtag, data) { function processHashtag(postboard, hashtag, data) {
if( data ) { if( data && window.location.hash.indexOf(hashtag) != -1 ) {
for( var i = data.length-1; i >= 0; i-- ) { for( var i = data.length-1; i >= 0; i-- ) {
var userpost = data[i]["userpost"]; var userpost = data[i]["userpost"];
var key = userpost["n"] + ";" + userpost["time"]; var key = userpost["n"] + ";" + userpost["time"];