Skip to content

Commit

Permalink
skip tweets without media
Browse files Browse the repository at this point in the history
  • Loading branch information
bearice committed Mar 7, 2023
1 parent 40898af commit eaf975d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ fn is_cat_tweet(tweet: &&Tweet) -> bool {
.hashtags
.iter()
.any(|hashtag| hashtag.text == "每日一猫")
&& tweet.entities.media.is_some()
}

async fn load_cats() -> Result<Vec<CatTweet>> {
Expand Down

0 comments on commit eaf975d

Please sign in to comment.