await client.activityFeedback({ activity_id: "activity_123", hide: true, });Activity Feedback
Activity feedback lets your users provide feedback about the content they’re seeing.
When a user submits a feedback, a feeds.activity.feedback event is dispatched to the user who made the feedback.
Hide activity
Hide activity removes an activity for a given user from all feeds.
The hide takes effect after rereading the feed. The activity will be hidden from all feeds the user reads.
await client.feeds.activityFeedback({ activity_id: "activity_123", hide: true, user_id: "jane", });Since activity hide only affects the current user, it helps respect users’ content preferences. If an activity contains harmful information, moderation should be used to mitigate the situation.
It’s possible to undo an activity hide:
await client.activityFeedback({ activity_id: "activity_123", hide: false, });await client.feeds.activityFeedback({ activity_id: "activity_123", hide: false, user_id: "jane", });When an activity is hidden, activity.hidden flag will be set to true. Hidden activities won’t be returned when reading feeds, but they can still be queried with the proper filters.
SDKs won’t remove activities from the feed on feeds.activity.feedback event, but hidden flag will be updated.
Show more/less similar content
Stream’s feeds API tracks a user’s interest automatically based on the user’s interactions. But users can also provide feedback requesting more or less content from different topics.
This feature is under development 🏗️.