From: Hypolite Petovan Date: Wed, 30 Jan 2019 01:39:38 +0000 (-0500) Subject: Add result window for item tags in mod/babel X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bd031d0b87280d147a3ed39016f449bda458e49a;p=friendica.git Add result window for item tags in mod/babel --- diff --git a/mod/babel.php b/mod/babel.php index 64c9557767..6e47b81084 100644 --- a/mod/babel.php +++ b/mod/babel.php @@ -72,6 +72,21 @@ function babel_content() 'title' => L10n::t('BBCode::toMarkdown => Markdown::convert => HTML::toBBCode'), 'content' => visible_whitespace($bbcode4) ]; + + $item = [ + 'body' => $bbcode, + 'tag' => '', + ]; + + \Friendica\Model\Item::setHashtags($item); + $results[] = [ + 'title' => L10n::t('Item Body'), + 'content' => visible_whitespace($item['body']) + ]; + $results[] = [ + 'title' => L10n::t('Item Tags'), + 'content' => $item['tag'] + ]; break; case 'markdown': $markdown = trim($_REQUEST['text']);