我正在使用 getstream 的 js/node api,我正在嘗試向活動評論添加實時功能,但我收到 403 錯誤,顯示我沒有權(quán)限。我試過使用 targetFeeds: '[timeline:userid]' 但它破壞了應用程序。此外,我嘗試使用正在使用的文檔中的通知提要,我可以像這樣設(shè)置 targetFeeds:'[notification:userid]' 這顯然不是我們想要做的事情,因為這會導致每條消息都在不同的活動中此用戶的名稱將顯示在回調(diào)中。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}預期的結(jié)果是沒有 403,這將觸發(fā)我實現(xiàn)的回調(diào)。
使用 getstream 實時評論
慕尼黑8549860
2021-09-17 12:44:58