]> git.mxchange.org Git - friendica.git/blobdiff - mod/parse_url.php
Merge pull request #6013 from JonnyTischbein/issue_comment_media_link_prompt
[friendica.git] / mod / parse_url.php
index a14379e7096da14cbb13b86fb022c71dbd7a79b3..f35c584feb3bf66a623c72efb4d7fae4ae9596dc 100644 (file)
@@ -93,6 +93,7 @@ function parse_url_content(App $a)
                }
        }
 
+
        $template = '[bookmark=%s]%s[/bookmark]%s';
 
        $arr = ['url' => $url, 'text' => ''];
@@ -124,6 +125,12 @@ function parse_url_content(App $a)
 
        unset($siteinfo['keywords']);
 
+       // Bypass attachment if parse url for a comment
+       if (!empty($_GET['noAttachment'])) {
+               echo $br . '[url=' . $url . ']' . $siteinfo['title'] . '[/url]';
+               exit();
+       }
+
        // Format it as BBCode attachment
        $info = add_page_info_data($siteinfo);