Set user_id when a link is added