1
0
Fork 0

Merge pull request #6013 from JonnyTischbein/issue_comment_media_link_prompt

[frio] Add media / link prompt in comments
This commit is contained in:
Hypolite Petovan 2018-10-24 12:17:58 -04:00 committed by GitHub
commit 9c9ebfc7c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 80 additions and 21 deletions

View 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);