From bd031d0b87280d147a3ed39016f449bda458e49a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 29 Jan 2019 20:39:38 -0500 Subject: [PATCH] Add result window for item tags in mod/babel --- mod/babel.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mod/babel.php b/mod/babel.php index 64c955776..6e47b8108 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']);