mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 17:42:30 +08:00
Merge pull request #527 from coralproject/quick-fix-permalinks
Quickfix permalinks
This commit is contained in:
@@ -159,6 +159,10 @@ class Embed extends React.Component {
|
||||
|
||||
const userBox = <UserBox user={user} logout={() => 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 (
|
||||
<div style={expandForLogin}>
|
||||
<div className="commentStream">
|
||||
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user