mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 23:00:12 +08:00
Removing rejected and approved comments from flagged feed.
This commit is contained in:
@@ -64,7 +64,11 @@ class ModerationContainer extends React.Component {
|
||||
const {comments} = this.props;
|
||||
const premodIds = comments.ids.filter(id => comments.byId[id].status === 'premod');
|
||||
const rejectedIds = comments.ids.filter(id => comments.byId[id].status === 'rejected');
|
||||
const flaggedIds = comments.ids.filter(id => comments.byId[id].flagged === true);
|
||||
const flaggedIds = comments.ids.filter(id =>
|
||||
comments.byId[id].flagged === true &&
|
||||
comments.byId[id].status !== 'rejected' &&
|
||||
comments.byId[id].status !== 'accepted'
|
||||
);
|
||||
|
||||
return (
|
||||
<ModerationQueue
|
||||
|
||||
Reference in New Issue
Block a user