]> git.mxchange.org Git - friendica.git/commitdiff
make it selectable
authorMax Weller <igitt@max-weller.de>
Sat, 23 Jun 2012 20:39:11 +0000 (22:39 +0200)
committerMax Weller <igitt@max-weller.de>
Sat, 23 Jun 2012 20:39:11 +0000 (22:39 +0200)
include/api.php

index 32579fe7d387959bb7972f5a116bdab9373aee7a..52ae2fd695123adeaf675bb7cc6a1a200852e75d 100644 (file)
       //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);