return;
// don't check statusnet settings if statusnet submit button is not clicked
if (!x($_POST,'statusnet-submit')) return;
-
+
if (isset($_POST['statusnet-disconnect'])) {
/***
* if the statusnet-disconnect checkbox is set, clear the statusnet configuration
$shorteningchecked = (($shorteningenabled) ? ' checked="checked" ' : '');
$s .= '<span id="settings_statusnet_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_statusnet_expanded\'); openClose(\'settings_statusnet_inflated\');">';
- $s .= '<h3>'. t('StatusNet Posting Settings').'</h3>';
+ $s .= '<h3>'. t('StatusNet').'</h3>';
$s .= '</span>';
$s .= '<div id="settings_statusnet_expanded" class="settings-block" style="display: none;">';
$s .= '<span class="fakelink" onclick="openClose(\'settings_statusnet_expanded\'); openClose(\'settings_statusnet_inflated\');">';
- $s .= '<h3>'. t('StatusNet Posting Settings').'</h3>';
+ $s .= '<h3>'. t('StatusNet').'</h3>';
$s .= '</span>';
if ( (!$ckey) && (!$csecret) ) {
require_once("include/bbcode.php");
require_once("include/html2plain.php");
+ $b['body'] = bb_CleanPictureLinks($b['body']);
+
// Looking for the first image
$cleaned_body = api_clean_plain_items($b['body']);
$image = '';
//$body = preg_replace("/\[share(.*?)\](.*?)\[\/share\]/ism","\n\n$2\n\n",$body);
// At first convert the text to html
- $html = bbcode(api_clean_plain_items($body), false, false, 2, true);
+ $html = bbcode(api_clean_plain_items($body), false, false, 2);
// Then convert it to plain text
//$msg = trim($b['title']." \n\n".html2plain($html, 0, true));