1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug Soft deleted threads delete attachments

Discussion in 'Resolved Bug Reports' started by AndyB, Jun 18, 2013.

  1. AndyB

    AndyB Well-Known Member

    When a member soft deletes a thread it appears that attachments contained in that thread are physically deleted. The attachments should not be physically deleted until the thread is physically deleted so in case we want to restore a soft deleted thread with attachments, the entire thread can be restored including attachments.
    Adam Howard likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    I can't reproduce this and I don't see how it could happen - the attachments are only actually deleted when we remove the messages.
  3. Moshe1010

    Moshe1010 Well-Known Member

    I can't reproduce it either.
  4. AndyB

    AndyB Well-Known Member

    It appears the member before soft deleting the thread actually deleted the attachment but left the attach code in the message. This had me worried there was a bug. Sorry for the incorrect bug report.
  5. Rudy

    Rudy Well-Known Member

    A related question: does hard deleting remove attachments? We have a user that was posting dozens of images per day, all off-topic, and we already issued the warning and took away the attachment privileges. But we want to clean up the attachments.

    If not I may have to poke around and find an easy way to delete all of those attachments based on user ID...
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, a routine cron will clean those up.
  7. Rudy

    Rudy Well-Known Member

    ...after what else happens? After a hard delete, or a soft delete?

    My only drawback to using hard deletes is that we keep offending posts soft-deleted for future evidence in dealing with warnings, etc.
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Attachments are only removed on hard delete.
  9. Rudy

    Rudy Well-Known Member

    Hmmm...we might have a lot of hard deleting to do for this one member. ;)

    Thanks much!

Share This Page