Ref https://github.com/nextcloud/server/pull/6736#issuecomment-343945869  