]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: fix article guid not being passed to render article hook
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 20 Jul 2016 12:38:42 +0000 (15:38 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 20 Jul 2016 12:38:42 +0000 (15:38 +0300)
classes/api.php

index 9be04cff93cd0fb882b102ef2e38009587ec1dd2..35c5d5f38e1b6ed734a92c5d6dfb5809ef26eaa9 100644 (file)
@@ -330,7 +330,7 @@ class API extends Handler {
 
                if ($article_id) {
 
-                       $query = "SELECT id,title,link,content,feed_id,comments,int_id,
+                       $query = "SELECT id,guid,title,link,content,feed_id,comments,int_id,
                                marked,unread,published,score,note,lang,
                                ".SUBSTRING_FOR_DATE."(updated,1,16) as updated,
                                author,(SELECT title FROM ttrss_feeds WHERE id = feed_id) AS feed_title,
@@ -352,6 +352,7 @@ class API extends Handler {
 
                                        $article = array(
                                                "id" => $line["id"],
+                                               "guid" => $line["guid"],
                                                "title" => $line["title"],
                                                "link" => $line["link"],
                                                "labels" => get_article_labels($line['id']),
@@ -753,6 +754,7 @@ class API extends Handler {
 
                                        $headline_row = array(
                                                "id" => (int)$line["id"],
+                                               "guid" => $line["guid"],
                                                "unread" => sql_bool_to_bool($line["unread"]),
                                                "marked" => sql_bool_to_bool($line["marked"]),
                                                "published" => sql_bool_to_bool($line["published"]),