Fix for errors when sharing with the ShareSocial addon