Skip to content

Commit

Permalink
Merge pull request #6 from approvers/ignore-retweets
Browse files Browse the repository at this point in the history
🐛 Skip retweets on Twitter watcher
  • Loading branch information
siketyan authored May 10, 2021
2 parents df6aa0d + 56df3d4 commit e5c1d0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Twatch/Service/Twitter/TwitterWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public IEnumerable<IMessage> Watch()
.Streaming
.Filter(track: _keyword)
.OfType<StatusMessage>()
.Select(message => new TwitterMessage(message.Status))
.Select(message => message.Status)
.Where(status => status.RetweetedStatus is null)
.Select(status => new TwitterMessage(status))
;
}
}
Expand Down

0 comments on commit e5c1d0e

Please sign in to comment.