Emit event after setting a new expiration for a share

New Pull request for #5103

One commit, should pass the tests and merge without problems.