使用 GetStream,我可以在他的关注者的时间轴上而不是在他的个人资料提要上显示用户的操作吗?

Using GetStream, can I show a user's actions on his follower's timeline but not on his profile feed?

我正在构建一个网络应用程序,用户可以在其中 post 文章。他们还可以评论、点赞和分享 posted 文章。用户可以关注其他用户,以便他们在自己的时间线上看到他们的活动。

在他们的时间线提要上,他们可以看到他们关注的所有用户的活动。就像 Facebook 一样,他们可以访问用户的个人资料页面,在那里他们可以看到用户的 "profile feed"。在此供稿中,他们只能看到此特定用户的近期活动。

在 "profile feed" 上,我只想显示一些特定的操作,例如 "Jack posted a new article" 或 "Jack shared this article"。我不想显示像 "Jack commented this article" 或 "Jack liked this article" 这样的活动。但我不想在时间轴上显示所有这些活动。

阅读整个文档后,我不明白我该怎么做。对于时间线提要,我很好。对于 "profile feed",我想我需要阅读用户提要,但此提要将包括用户的所有活动,包括评论、喜欢等。有没有办法阅读提要并仅询问特定动词?

我是这样处理这种情况的:

有两个用户供稿组。一个 user_profile_actions 用于属于用户个人资料的操作,另一个 user_other_actions 用于其他操作。这样,当我想显示用户的个人资料时,我会阅读 user_profile_actions 提要。当有人决定关注某个用户时,我会让他的 timeline_aggregated 订阅源以这种方式关注两个用户订阅源:

$follows = [
    ['source' => 'timeline_aggregated:peter', 'target' => 'user_profile_actions:jack'],
    ['source' => 'timeline_aggregated:peter', 'target' => 'user_other_actions:jack'],
];

$batcher->followMany($follows);