如何在GetStream的getActivities中过滤特定动词。

huangapple go评论77阅读模式
英文:

How to filter a specific verb in getActivities in GetStream

问题

我正在寻找一种在GetStream API的feed.getActivities()上按动词应用过滤器的方法,类似于lg_te或其他内容。我想要将动词筛选为类似于writeArticle的内容。是否有任何方法?不幸的是,在文档中我找不到任何相关内容。

感谢您所有的帮助。

英文:

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.

答案1

得分: 2

你不能。

对于这些活动,将它们放入一个单独的动态源中,直接阅读,并让您的原始动态源关注这个新的动态源。

  • 您当前的关注:添加到X
  • 您的新关注:添加到文章动态源,X将关注文章动态源,所以一切都和以前一样。

但现在您可以进行筛选,只需阅读文章动态源。

英文:

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.

huangapple
  • 本文由 发表于 2020年10月27日 20:38:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/64554606.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定