Skip to content
Snippets Groups Projects
Commit 7ee31ea8 authored by Tim's avatar Tim
Browse files

hide spam from replies tab, resolves #255

parent 63f6f780
No related branches found
No related tags found
No related merge requests found
......@@ -179,13 +179,13 @@ export default class UserProfile extends React.Component {
// }
// }
else if( (section === 'recent-replies') && account.recent_replies ) {
const reply_summary = account.recent_replies.map( item => {
return (<li style={{listStyleType: 'none'}} key={item}>
<PostSummary post={item} currentCategory="-" />
</li>);
});
tab_content = reply_summary.length ? reply_summary :
<div>{account.name} hasn't had any replies yet.</div>;
tab_content = <PostsList
emptyText={`${account.name} hasn't had any replies yet.`}
posts={account.recent_replies}
loading={fetching}
category="recent-replies"
loadMore={null}
showSpam={false} />;
}
else if( section === 'permissions' && isMyAccount ) {
tab_content = <UserKeys account={accountImm} />
......
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