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

Fixes the major part of #4649 

Follows #4825

@bartv2 @DeepDiver1975 @ringmaster @schiesbn @icewind1991 @tanghus @karlitschek