Add muted_reasons_filter parameter to Bridge API post endpoints

Adds optional muted_reasons_filter parameter to all Bridge API functions that return posts:

  • bridge.get_ranked_posts
  • bridge.get_account_posts
  • bridge.get_account_posts_by_tag

The parameter accepts an array of integers (0-4) representing muted reason bit positions. Posts with ANY of the specified muted reason bits set are filtered from results.

Key features:

  • Filter applied in WHERE clause before LIMIT to maintain requested post count
  • Efficient bitwise AND operations, no new indexes needed
  • Fully backward compatible (optional parameter, defaults to NULL)
  • Updated 32 utility functions across 8 SQL files

Merge request reports

Loading