Extending the unpublish feature

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

Is there any way to extend the publish feature so that when I set some content back to draft from within the admin I can query another collection and send emails to the interested parties?