Stable5 backport of "Fix Sharing "Expiration Date" for Shares of type Link (i.e. Token)"

Backport of #4856