Skip to content

Commit

Permalink
Restrict to displaying only public posts in the digest
Browse files Browse the repository at this point in the history
  • Loading branch information
cdzombak authored Jan 17, 2023
1 parent 82e698b commit adbc83f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def fetch_posts_and_boosts(
filtered_response = response

for post in filtered_response:
if post["visibility"] != "public":
continue

total_posts_seen += 1

boost = False
Expand Down

0 comments on commit adbc83f

Please sign in to comment.