Similar issue here:

```ruby
if comment = Comment.where(id: post_id).first
  if comment.author.local?
    comment.author.owner.retract(comment)
  elsif comment.parent.author.local?
    comment.parent.author.owner.retract(comment)
  else
    comment.destroy
  end
end
```