don't retrieve TL if user is protected

This commit is contained in:
Nicolas Constant 2021-02-10 01:35:29 -05:00
parent 567f02a4e2
commit 5f480b4baa
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 4 additions and 0 deletions

View File

@ -68,6 +68,10 @@ namespace BirdsiteLive.Pipeline.Processors
{
var tweets = new ExtractedTweet[0];
// Don't retrieve TL if protected
var userView = _twitterUserService.GetUser(user.Acct);
if (userView == null || userView.Protected) return tweets;
try
{
if (user.LastTweetPostedId == -1)