]> git.mxchange.org Git - friendica.git/blobdiff - mod/parse_url.php
Add Link promt in comment + only add URL instead of attachement via parse_url
[friendica.git] / mod / parse_url.php
index 40eddc3bdd5053afcd93e1581048d4f13f9baf1f..a68f405de83b0335d993dcead15b36c5212ba4ff 100644 (file)
@@ -92,6 +92,11 @@ function parse_url_content(App $a)
                }
        }
 
+       if(!empty($_GET['isComment'])) {
+               echo $br . '[url]' . $url . '[/url]';
+               exit();
+       }
+
        $template = '[bookmark=%s]%s[/bookmark]%s';
 
        $arr = ['url' => $url, 'text' => ''];