Merge pull request #6013 from JonnyTischbein/issue_comment_media_link_prompt
[frio] Add media / link prompt in comments
This commit is contained in:
commit
9c9ebfc7c9
8 changed files with 80 additions and 21 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue