xwp / stream

🗄️ Stream plugin for WordPress

Home Page:https://wordpress.org/plugins/stream/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore comments deleted when deleting parent post

fjarrett opened this issue · comments

We noticed a very large number of records coming flooding in from a certain site all relating to comments being deleted, but they weren't system actions, it was being done by a real user.

It turns out that when you permanently delete a post it also permanently deletes the comments on that post and attributes you as the one who deleted them.

This means that deleting 1 post that has 100,000 comments on it would result in 100,001 Stream records created. 😸

We need to ignore comment deletion in these cases and perhaps find a way to say how many comments were deleted inside 1 record. Such as: 2,000 comments deleted from "Hello, world"

/cc @lukecarbis @shadyvb

screen shot 2014-10-15 at 12 12 17 pm