-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unmoderated column contains comments of deleted users that cannot be removed #4099
Comments
Hi there! can you let us know how the users were deleted? |
These are users from over 4 years ago. I recon these users were deleted using this graphQL mutation:
https://github.com/coralproject/talk/blob/v4.8.3/graph/mutators/user.js#L101-L187 I think this delUser mutation from coral talk v4 doesn't replace the status from PRE-MOD or NONE to REJECTED, as the new coral talk version do seems to do using the new deleteUserAccount mutation:
talk/src/core/server/services/users/delete.ts Lines 170 to 234 in 45eb755
Is there a way to easily get rid of the comments?
However:
The only thing I can think of, is to manually set the status to REJECTED. However, I'm afraid this would mess up the total counts of each column. If I do that, is there a command that resets the counts? ... or I should set the status correct during the import. |
For now I changed the to return status |
This is still an issue. Occurs when while a user's comment is in pre-mod, he deletes his account. |
we've added this to our backlog, thanks |
Currently the new coral talk contains a moderation column named "unmoderated"
This column contains all comments that either have status
NONE
orPRE-MOD
.However, some users deleted their account and now some comments are forever in
unmoderated
, as the comment can no longer be declined or approved.The same applies for the
review
column.Expected behavior:
Either: being able to accept or decline comments that no longer have an author
or: do not show comments that have no author in the
unmoderated
andreview
columnActual behavior:
comments without
authorId
are forever in theunmoderated
andreview
column, making it hard for the editors to review new comments if they sort byoldest first
Related Issues:
Versions:
The text was updated successfully, but these errors were encountered: