aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax Weller <igitt@max-weller.de>2012-06-23 22:39:11 +0200
committerMax Weller <igitt@max-weller.de>2012-06-23 22:39:11 +0200
commit11b6beae061d0536ea70c01c28a19b16826bfb8e (patch)
tree9e999c0df52e3a2704782daa6882c61886ed5462 /include
parent111ace5abd855a0c4f248b34d468285b825abbd0 (diff)
downloadvolse-hubzilla-11b6beae061d0536ea70c01c28a19b16826bfb8e.tar.gz
volse-hubzilla-11b6beae061d0536ea70c01c28a19b16826bfb8e.tar.bz2
volse-hubzilla-11b6beae061d0536ea70c01c28a19b16826bfb8e.zip
make it selectable
Diffstat (limited to 'include')
-rw-r--r--include/api.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/api.php b/include/api.php
index 32579fe7d..52ae2fd69 100644
--- a/include/api.php
+++ b/include/api.php
@@ -1604,8 +1604,10 @@
//don't send title to regular StatusNET requests to avoid confusing these apps
if (isset($_GET["getText"])) {
$d['title'] = $item['title'] ;
- if ($_GET["getText"] == "true") {
+ if ($_GET["getText"] == "html") {
$d['text'] = bbcode($item['body']);
+ } elseif ($_GET["getText"] == "plain") {
+ $d['text'] = html2plain(bbcode($item['body']), 0);
}
} else {
$d['text'] = $item['title']."\n".html2plain(bbcode($item['body']), 0);