def ensure_social_link(website, link):
 if ((link == '') or (link is None)):
  return link
 if (link.find('/') != (-1)):
  return link
 else:
  return ((website + '/') + link)

def ensure_social_link ( website , link ) : if ( ( link == '' ) or ( link is None ) ) : return link if ( link . find ( '/' ) != ( - 1 ) ) : return link else : return ( ( website + '/' ) + link )
converts usernames of social profiles to full profile links if link is username .