我正在使用 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,这将触发我实现的回调。
                    
                    
                1 回答
 
                    
                    
                            守着星空守着你
                            
                                
                            
                        
                        
                                                
                    TA贡献1799条经验 获得超8个赞
默认权限设置允许用户只将活动写入自己的提要;在这种情况下,您正在向CommentsFeed:${activityId}.
您可以请求支持 (support@getstream.io) 为您的应用程序将其列入白名单。请务必提及此案例并包含您的应用程序。
添加回答
举报
0/150
	提交
		取消
	