Open-source algorithm

Government filters in For You

The For You pipeline now ships government-required ranking filters in public source. Today there is one. If another government forces a similar rule, it should appear here the same way — named, scoped, and readable.

LiveVerified in repoAdded 14 August 2026

Brazil2026ElectionFilter

The only government-required filter currently published in the open-source For You algorithm. It removes posts from about 665 TSE-listed 2026 candidate accounts unless the viewer follows them. It is not a site-wide ban and is not a public list of every withheld post.

Country
Brazil
Accounts on the list
~665
Scope
For You recommendations only. Posts from listed accounts are dropped from the recommendation pipeline.
Exception
Viewers who already follow the account still see those posts. Paid boosting is carved out in the cited electoral-law text.

Not allowed

For You will not recommend posts from TSE-listed 2026 candidate accounts to people who do not already follow them.

Still allowed

Followers still see the posts. Following timelines, Search, profiles, and paid boosting sit outside this filter.

Legal basis. Brazilian electoral law — application providers that use a recommendation system must exclude channels and profiles reported to the Electoral Court (TSE), except paid boosting.

home-mixer/filters/brazil_2026_election_filter.rs

Sample listed handles

Handles copied from comments in the filter file. User ids in the repo are obfuscated; usernames were published for transparency. This is a sample, not the full ~665-account list.

How visibility works

After ranking, visibility-filtering returns ALLOW, INTERSTITIAL, or DROP for each viewer and post. Rules can read labels, blocks, mutes, follows, account status, settings, and the viewer’s country. Some rules apply only to out-of-network recommendations — which is why following an account can restore posts the For You filter would drop.

Country withholdings are different: a post can stay online globally and only show a notice inside one jurisdiction. Those notices are not aggregated into a public post list yet.