Warning:
You are viewing the Feeds v2 documentation. Feeds v2 is in maintenance mode and no longer receives new features. New projects should use Feeds v3, a major upgrade in performance, capabilities, and developer experience. To move an existing app, follow the migration guide.

Discard Rules

It is possible to discard activities added to a feed based on certain rules.

Common Use Case

One common use case is when users post in a feed that one of their own notification feeds follows. By default, the user gets a notification of their own activity. To avoid this, you can apply a discard rule so that the user's own activities can be filtered out.

Parameters

The following discard rules are available:

name description
discard_rule_default Discard when activity actor matches the user_id of the feed
discard_rule_actor_with_colon Discard when the second part of the activity actor split on colon matches the user_id of the feed

To enable this feature, contact support with:

  • the name of the feed group

  • the name of the rule to apply

Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Feeds Node v2: <Your Question>