we need to listen to the pre delete hook, otherwise the file is already gone
Merge pull request #2277 from owncloud/fix_sharing_hooks

listen to the pre delete hook in the sharing app [master]