]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: add always_display_attachments to getHeadlines
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 10 Oct 2012 12:36:03 +0000 (16:36 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 10 Oct 2012 12:36:03 +0000 (16:36 +0400)
include/functions.php

index 44852a1979349126a3d57572e54015959e3385ea..446e474a4b8c92ba11b0e858225e4f858be61e10 100644 (file)
                                $headline_row["comments_count"] = (int)$line["num_comments"];
                                $headline_row["comments_link"] = $line["comments"];
 
+                               $headline_row["always_display_attachments"] = sql_bool_to_bool($line["always_display_enclosures"]);
+
                                array_push($headlines, $headline_row);
                        }