From: Andrew Dolgov Date: Sat, 30 Mar 2013 14:24:32 +0000 (+0400) Subject: api: add author to getHeadlines X-Git-Tag: 1.7.6~128 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=583dbc56953afbad6ccae5e3add15160e23b68e4;p=tt-rss.git api: add author to getHeadlines --- diff --git a/classes/api.php b/classes/api.php index 3b99b79f..0e56e58f 100644 --- a/classes/api.php +++ b/classes/api.php @@ -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);