Backport of #4856 to stable5: Fix Sharing "Expiration Date" for Shares of type Link (i.e. Token)

Follows #4954 which actually missed #4856 changes.

@DeepDiver1975