Skip to content
Snippets Groups Projects
Commit d506793c authored by TimCliff's avatar TimCliff
Browse files

Do not show how many flags a post has received in post preview

parent fb8bb7aa
No related branches found
No related tags found
No related merge requests found
...@@ -178,7 +178,7 @@ class PostSummary extends React.Component { ...@@ -178,7 +178,7 @@ class PostSummary extends React.Component {
return ( return (
<article className={'PostSummary hentry' + (thumb ? ' with-image ' : ' ') + commentClasses.join(' ')} itemScope itemType ="http://schema.org/blogPost"> <article className={'PostSummary hentry' + (thumb ? ' with-image ' : ' ') + commentClasses.join(' ')} itemScope itemType ="http://schema.org/blogPost">
<div className={hasFlag ? '' : 'PostSummary__collapse'}> <div className="PostSummary__collapse">
<div className="float-right"><Voting post={post} flag /></div> <div className="float-right"><Voting post={post} flag /></div>
</div> </div>
{reblogged_by} {reblogged_by}
......
...@@ -146,7 +146,6 @@ class Voting extends React.Component { ...@@ -146,7 +146,6 @@ class Voting extends React.Component {
const flagClickAction = myVote === null || myVote === 0 ? this.toggleWeightDown : this.voteDown const flagClickAction = myVote === null || myVote === 0 ? this.toggleWeightDown : this.voteDown
return <span className="Voting"> return <span className="Voting">
<span className={classDown}> <span className={classDown}>
{down_votes > 0 && <span className="Voting__button-downvotes">{down_votes}</span>}
{votingDownActive ? down : <a href="#" onClick={flagClickAction} title="Flag">{down}</a>} {votingDownActive ? down : <a href="#" onClick={flagClickAction} title="Flag">{down}</a>}
{dropdown} {dropdown}
</span> </span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment