From: Evan Prodromou Date: Fri, 3 Sep 2010 04:53:39 +0000 (-0400) Subject: don't save statuses from protected users X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ed99fd51e8cb8bdbd03f41400018760f95318328;p=quix0rs-gnu-social.git don't save statuses from protected users --- diff --git a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php index 7c624fdb3b..964abc0d3e 100755 --- a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php +++ b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php @@ -215,6 +215,13 @@ class TwitterStatusFetcher extends ParallelizingDaemon continue; } + // Don't save it if the user is protected + // FIXME: save it but treat it as private + + if ($status->user->protected) { + continue; + } + $this->saveStatus($status, $flink); }