From 90d7ae87768614ccb808676131ede55aabee7c10 Mon Sep 17 00:00:00 2001 From: Matt DeMoss Date: Fri, 12 Jan 2018 07:07:40 -0500 Subject: [PATCH] Fix twitter list filter test #613, fix and change getName() for lists. (#614) --- bridges/TwitterBridge.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bridges/TwitterBridge.php b/bridges/TwitterBridge.php index 66024ce..aedb372 100644 --- a/bridges/TwitterBridge.php +++ b/bridges/TwitterBridge.php @@ -77,9 +77,7 @@ class TwitterBridge extends BridgeAbstract { $param = 'u'; break; case 'By list': - $specific = $this->getInput('user'); - $param = 'list'; - break; + return $this->getInput('list') . ' - Twitter list by ' . $this->getInput('user'); default: return parent::getName(); } return 'Twitter ' . $specific . $this->getInput($param); @@ -165,7 +163,7 @@ class TwitterBridge extends BridgeAbstract { switch($this->queriedContext) { case 'By list': // Check if filter applies to list (using raw content) - if(!is_null($this->getInput('filter'))) { + if($this->getInput('filter')) { if(stripos($tweet->find('p.js-tweet-text', 0)->plaintext, $this->getInput('filter')) === false) { continue 2; // switch + for-loop! }