From: Max Weller Date: Sat, 23 Jun 2012 20:39:11 +0000 (+0200) Subject: make it selectable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=11b6beae061d0536ea70c01c28a19b16826bfb8e;p=friendica.git make it selectable --- diff --git a/include/api.php b/include/api.php index 32579fe7d3..52ae2fd695 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);