grlcs
This commit is contained in:
@@ -58,6 +58,12 @@ function tweetCell(tweet) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function filterTweets(tweets, bannedWords=[], searchWords=[], sorted, order) {
|
function filterTweets(tweets, bannedWords=[], searchWords=[], sorted, order) {
|
||||||
|
if(bannedWords.length == 1 && bannedWords[0] == ""){
|
||||||
|
bannedWords = []
|
||||||
|
}
|
||||||
|
if(searchWords.length == 1 && searchWords[0] == ""){
|
||||||
|
searchWords = []
|
||||||
|
}
|
||||||
if(bannedWords.length > 0){
|
if(bannedWords.length > 0){
|
||||||
tweets = filterBannedWords(bannedWords, tweets)
|
tweets = filterBannedWords(bannedWords, tweets)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user