Search code examples
javagetstream-io

How to filter a specific verb in getActivities in GetStream


I'm looking for a way to apply a filter by verb on feed.getActivities() in GetStream API, more than lg_te or etc. I want to filter verb to be equals something like writeArticle. Is there any way? Unfortunately, I couldn't find anything in the docs.

Thank you for all of your help.


Solution

  • You can't.

    For these activities, put them into a separate feed and read directly and make your original feed to follow this new feed.

    • Your current follow: add to X
    • Your new follow: add to article feed and X will follow article feed so everything as before.

    But now you can filter, just read article feed.