]> git.mxchange.org Git - friendica.git/commitdiff
Add result window for item tags in mod/babel
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 30 Jan 2019 01:39:38 +0000 (20:39 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 30 Jan 2019 01:39:38 +0000 (20:39 -0500)
mod/babel.php

index 64c9557767d278d7a6122019dbd6016f4c3087d0..6e47b81084b0f158be746c56af021f026cd0c7ff 100644 (file)
@@ -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']);