我正在使用 getstream 的 js/node api,我正在尝试向活动评论添加实时功能,但我收到 403 错误,显示我没有权限。
我试过使用 targetFeeds: '[timeline:userid]' 但它破坏了应用程序。
此外,我尝试使用正在使用的文档中的通知提要,我可以像这样设置 targetFeeds:'[notification:userid]' 这显然不是我们想要做的事情,因为这会导致每条消息都在不同的活动中此用户的名称将显示在回调中。
client.reactions.add("comment", activityId, {
"text": newComment,
"profileImage": 'https://i.pravatar.cc/300',
"timestamp": date,
"from": userId,
"id": foreignId,
},
{targetFeeds: [`CommentsFeed:${activityId}`]});
403 的响应是下一个:
{
code: 17
detail: "You don't have permission to do this"
duration: "0.18ms"
exception: "NotAllowedException"
status_code: 403
}
预期的结果是没有 403,这将触发我实现的回调。
守着星空守着你
相关分类