mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Don't wrongly highlight '[deleted]' as post author
This commit is contained in:
parent
a8b32127d1
commit
ec51dc05cc
2 changed files with 2 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ const Comment = (props) => {
|
|||
<span className='space' />
|
||||
<a
|
||||
href={props.author !== '[deleted]' ? `https://www.reddit.com/user/${props.author}` : undefined}
|
||||
className={props.author == props.postAuthor ? 'author comment-author comment-poster' : 'author comment-author'}
|
||||
className={props.author === props.postAuthor ? 'author comment-author comment-poster' : 'author comment-author'}
|
||||
>
|
||||
{props.author}
|
||||
{props.deleted && ' (deleted by user)'}
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@ class Thread extends React.Component {
|
|||
comments={this.state.pushshiftCommentLookup}
|
||||
removed={this.state.removed}
|
||||
deleted={this.state.deleted}
|
||||
postAuthor={author}
|
||||
postAuthor={isDeleted(author) ? null : author}
|
||||
/>
|
||||
</React.Fragment>
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue