api: add author to getHeadlines

This commit is contained in:
Andrew Dolgov 2013-03-30 18:24:32 +04:00
parent 842c2ab451
commit 583dbc5695
1 changed files with 2 additions and 0 deletions

View 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);