mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-09-02 09:11:56 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
fbeee7cbf6
@ -222,6 +222,9 @@ var TwisterOptions = function()
|
||||
$('#language').val( this.getOption('locLang', 'auto') );
|
||||
$('#language').on('change', function() {
|
||||
$.Options.setOption('locLang', $(this).val());
|
||||
if($(this).val() != 'auto') {
|
||||
twisterRpc("setpreferredspamlang", [$(this).val()]);
|
||||
}
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
|
@ -189,7 +189,6 @@ function showPosts(req, posts)
|
||||
var streamItemsParent = $.MAL.getStreamPostsParent();
|
||||
|
||||
for( var i = 0; i < posts.length; i++ ) {
|
||||
if (req.users.indexOf(posts[i]['userpost']['n']) > -1 || req.getspam) { // FIXME maybe it's unecessary check but currently we got unwanted adverting posts which are coming with requested ones from 'getposts' sometimes
|
||||
var post = posts[i];
|
||||
//console.log(post);
|
||||
var streamPost = postToElem(post, "original", req.getspam);
|
||||
@ -227,7 +226,6 @@ function showPosts(req, posts)
|
||||
streamPost.show();
|
||||
req.reportProcessedPost(post["userpost"]["n"],post["userpost"]["k"], streamPostAppended);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// request timeline update for a given list of users
|
||||
|
Loading…
x
Reference in New Issue
Block a user