Hm, I just realized that this happens as admin user, so we need to fetch the appropriate user to delete the post. We also need to differentiate between whether the post author is a local or a remote user.

```ruby
if post =  Post.where(id: params[:id]).first
  if post.author.local?
    post.author.owner.retract(post)
  else
    post.destroy
  end
end
```

This should probably moved into the Report model and the destroy action be reduced to:

```ruby
def destroy_reported_item
  if report = Report.where(id: params[:id]).first
    if report.destroy_reported_item
      flash[:notice] = ....
    else
      flash[:error] = ...
    end
  else
    flash[:error] = ...
  end

  redirect_to ...
end
```