diff --git a/libs/twtxt.php b/libs/twtxt.php index 956b563..4e7344e 100644 --- a/libs/twtxt.php +++ b/libs/twtxt.php @@ -124,6 +124,8 @@ function getImagesFromTwt(string $twtString) { function getTagsFromTwt(string $twtString) { //$pattern = '/(?#\1'; // Dummy link $replacement = '#${1}'; $result = preg_replace($pattern, $replacement, $twtString); @@ -226,10 +230,6 @@ function embedYoutubeFromTwt(string $twtString) { $youtubeLinks = array_unique($youtubeLinks[1]); // Remove dublicate cause by raw URLs conceverter to links - //echo "
";
-		//print_r($youtubeLinks);
-		//echo "
"; - foreach ($youtubeLinks as $videoID) { $twtString .= ''; } @@ -435,7 +435,6 @@ function getTwtsFromTwtxtString($url) { //$twtContent = replaceMarkdownLinksFromTwt($twtContent); //$twtContent = replaceImagesFromTwt($twtContent); - //$twtContent = Slimdown::render($twtContent); $Parsedown = new Parsedown(); $twtContent = $Parsedown->text($twtContent);