add post hooks to share API, needed by the encryption app
add post hooks to share API, needed by the encryption app