Skip to content

Commit

Permalink
Merge pull request mauforonda#1 from cdzombak/cdz/restrict-to-public-…
Browse files Browse the repository at this point in the history
…posts

Restrict to displaying only public posts in the digest
  • Loading branch information
cdzombak authored Jan 17, 2023
2 parents 82e698b + adbc83f commit 85e8ed9
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 85e8ed9

Please sign in to comment.