Updated link detection to account for embedded youtube videos