This article shows you how to take care of this Stream Feeds error:
`The policy "Don't impersonate other users" (900) blocked this request, please consult the documentation https://getstream.io/docs/,
This error is associated with the actor field when you are adding an activity. You can either actually remove the field or add a prefix. The two options are shown below.
1. Do not include the actor in the activity
const activityfeed = {
'verb': 'add',
'object': 'picture:10',
'time': new Date()
};
const addactivity = await testFeed.addActivity(activityfeed);
2. Mention the actor with the prefix "SU:"
const activityfeed = {
'actor': "SU:"+ userID,
'verb': 'add',
'object': 'picture:10',
'time': new Date()
};
const addactivity = await testFeed.addActivity(activityfeed);
If you have any questions, please reach out to us at https://getstream.io/contact/support/!
Comments
0 comments
Please sign in to leave a comment.