This commit is contained in:
Belen Curcio
2017-05-22 09:03:10 -03:00
parent 9936b6ec47
commit 317f7134f2
@@ -19,7 +19,7 @@ import ChangeUsernameContainer
const lang = new I18n(translations);
class Stream extends React.Component {
setActiveReplyBox = reactKey => {
setActiveReplyBox = (reactKey) => {
if (!this.props.auth.user) {
this.props.showSignInDialog();
} else {
@@ -66,11 +66,11 @@ class Stream extends React.Component {
const firstCommentDate = asset.comments[0]
? asset.comments[0].created_at
: new Date(Date.now() - 1000 * 60 * 60 * 24 * 7).toISOString();
const commentIsIgnored = comment => {
const commentIsIgnored = (comment) => {
return (
me &&
me.ignoredUsers &&
me.ignoredUsers.find(u => u.id === comment.user.id)
me.ignoredUsers.find((u) => u.id === comment.user.id)
);
};
return (
@@ -174,7 +174,7 @@ class Stream extends React.Component {
setCommentCountCache={this.props.setCommentCountCache}
/>
<div className="embed__stream">
{comments.map(comment => {
{comments.map((comment) => {
return commentIsIgnored(comment)
? <IgnoredCommentTombstone key={comment.id} />
: <Comment