convert to social shortlink function to avoid returning empty string