Pass the correct root to the preview on post_write
Merge pull request #8053 from owncloud/preview-hook-root

Pass the correct root to the preview on post_write