Fixes #2156 Attachment count wrong when unapproving attachments