From 583dbc56953afbad6ccae5e3add15160e23b68e4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 30 Mar 2013 18:24:32 +0400 Subject: [PATCH] api: add author to getHeadlines --- classes/api.php | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5