mirror of
https://github.com/wassname/talk.git
synced 2026-07-04 03:03:02 +08:00
Merge pull request #231 from coralproject/bugfix-flagged-actions
Removed 'rejected' and 'approved' comments from flagged queue.
This commit is contained in:
@@ -77,7 +77,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