In order to check if a user already follows a feed , perhaps to render a different button or to avoid additional API calls, you can use the feed.Following() endpoint, for example, to check if user1 follows "scott" and "dani" user feeds,
const response = await user1.following({
offset: 0, limit: 2, filter: ['user:scott', 'user:dani']
})
Comments
0 comments
Please sign in to leave a comment.