diff options
author | Max Weller <igitt@max-weller.de> | 2012-06-23 22:39:11 +0200 |
---|---|---|
committer | Max Weller <igitt@max-weller.de> | 2012-06-23 22:39:11 +0200 |
commit | 11b6beae061d0536ea70c01c28a19b16826bfb8e (patch) | |
tree | 9e999c0df52e3a2704782daa6882c61886ed5462 /include/api.php | |
parent | 111ace5abd855a0c4f248b34d468285b825abbd0 (diff) | |
download | volse-hubzilla-11b6beae061d0536ea70c01c28a19b16826bfb8e.tar.gz volse-hubzilla-11b6beae061d0536ea70c01c28a19b16826bfb8e.tar.bz2 volse-hubzilla-11b6beae061d0536ea70c01c28a19b16826bfb8e.zip |
make it selectable
Diffstat (limited to 'include/api.php')
-rw-r--r-- | include/api.php | 4 |
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); |