]> git.mxchange.org Git - friendica.git/commitdiff
API: Add the title to the html output.
authorMichael Vogel <icarus@dabo.de>
Thu, 20 Mar 2014 17:44:24 +0000 (18:44 +0100)
committerMichael Vogel <icarus@dabo.de>
Thu, 20 Mar 2014 17:44:24 +0000 (18:44 +0100)
include/api.php

index 80f448c2686c8b2a4ffb7504a0ed087e62eea302..ea1ba27e4019af7b8974361ae0e45cd63452b639 100644 (file)
                                'statusnet_conversation_id'     => $lastwall['parent'],
                        );
 
+                       if ($lastwall['title'] != "")
+                               $status_info['statusnet_html'] = "<h4>".bbcode($lastwall['title'])."</h4>\n".$status_info['statusnet_html'];
+
                        $entities = api_get_entitities($status_info['text'], $lastwall['body']);
                        if (count($entities) > 0)
                                $status_info['entities'] = $entities;
                                'statusnet_conversation_id'     => $lastwall['parent'],
                        );
 
+                       if ($lastwall['title'] != "")
+                               $user_info['statusnet_html'] = "<h4>".bbcode($lastwall['title'])."</h4>\n".$user_info['statusnet_html'];
+
                        $entities = api_get_entitities($user_info['text'], $lastwall['body']);
                        if (count($entities) > 0)
                                $user_info['entities'] = $entities;
                                'statusnet_conversation_id'     => $item['parent'],
                        );
 
+                       if ($item['title'] != "")
+                               $status['statusnet_html'] = "<h4>".bbcode($item['title'])."</h4>\n".$status['statusnet_html'];
+
                        $entities = api_get_entitities($status['text'], $item['body']);
                        if (count($entities) > 0)
                                $status['entities'] = $entities;