require_once 'addon/diaspora/Diaspora_Connection.php';
+use Friendica\Content\Text\BBCode;
use Friendica\Core\Addon;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
$aspect = PConfig::get($b['uid'],'diaspora','aspect');
if ($handle && $password) {
-
logger('diaspora_send: all values seem to be okay', LOGGER_DEBUG);
- require_once('include/bb2diaspora.php');
$tag_arr = [];
$tags = '';
$x = preg_match_all('/\#\[(.*?)\](.*?)\[/',$b['tag'],$matches,PREG_SET_ORDER);
} while ($oldbody != $body);
// convert to markdown
- $body = bb2diaspora($body);
+ $body = BBCode::toMarkdown($body);
// Adding the title
if(strlen($title))
* Version: 1.0
* Author: Tony Baldwin <https://free-haven.org/u/tony>
*/
+
+use Friendica\Content\Text\BBCode;
use Friendica\Core\Addon;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
$ltree_source .= " (".$b['app'].")";
if($ltree_url && $ltree_api_token && $ltree_blog && $ltree_source) {
-
- require_once('include/bb2diaspora.php');
$tag_arr = [];
$tags = '';
$x = preg_match_all('/\#\[(.*?)\](.*?)\[/',$b['tag'],$matches,PREG_SET_ORDER);
} while ($oldbody != $body);
// convert to markdown
- $body = bb2diaspora($body, false);
+ $body = BBCode::toMarkdown($body, false);
// Adding the title
if(strlen($title))