diff --git a/client/coral-embed-stream/src/Embed.js b/client/coral-embed-stream/src/Embed.js index c7c204288..51079097f 100644 --- a/client/coral-embed-stream/src/Embed.js +++ b/client/coral-embed-stream/src/Embed.js @@ -159,6 +159,10 @@ class Embed extends React.Component { const userBox = this.props.logout().then(refetch)} changeTab={this.changeTab}/>; + // TODO: This is a quickfix and will be replaced after our refactor. + const ignoredUsers = this.props.userData.ignoredUsers; + const commentIsIgnored = (comment) => ignoredUsers && ignoredUsers.includes(comment.user.id); + return (
@@ -242,6 +246,7 @@ class Embed extends React.Component { loadMore={this.props.loadMore} deleteAction={this.props.deleteAction} showSignInDialog={this.props.showSignInDialog} + commentIsIgnored={commentIsIgnored} key={highlightedComment.id} reactKey={highlightedComment.id} comment={highlightedComment} />