]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: add author to getHeadlines
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 30 Mar 2013 14:24:32 +0000 (18:24 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 30 Mar 2013 14:24:32 +0000 (18:24 +0400)
classes/api.php

index 3b99b79f6fa24d4cd0013aa084da240cba1f5162..0e56e58f9ae97b2a6b48d0dd8c4b696fd5110e59 100644 (file)
@@ -664,6 +664,8 @@ class API extends Handler {
 
                                $headline_row["always_display_attachments"] = sql_bool_to_bool($line["always_display_enclosures"]);
 
+                               $headline_row["author"] = $line["author"];
+
                                global $pluginhost;
                                foreach ($pluginhost->get_hooks($pluginhost::HOOK_RENDER_ARTICLE_API) as $p) {
                                        $headline_row = $p->hook_render_article_api($headline_row);