mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:06:02 +00:00
api: fix article guid not being passed to render article hook
This commit is contained in:
@@ -330,7 +330,7 @@ class API extends Handler {
|
|||||||
|
|
||||||
if ($article_id) {
|
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,
|
marked,unread,published,score,note,lang,
|
||||||
".SUBSTRING_FOR_DATE."(updated,1,16) as updated,
|
".SUBSTRING_FOR_DATE."(updated,1,16) as updated,
|
||||||
author,(SELECT title FROM ttrss_feeds WHERE id = feed_id) AS feed_title,
|
author,(SELECT title FROM ttrss_feeds WHERE id = feed_id) AS feed_title,
|
||||||
@@ -352,6 +352,7 @@ class API extends Handler {
|
|||||||
|
|
||||||
$article = array(
|
$article = array(
|
||||||
"id" => $line["id"],
|
"id" => $line["id"],
|
||||||
|
"guid" => $line["guid"],
|
||||||
"title" => $line["title"],
|
"title" => $line["title"],
|
||||||
"link" => $line["link"],
|
"link" => $line["link"],
|
||||||
"labels" => get_article_labels($line['id']),
|
"labels" => get_article_labels($line['id']),
|
||||||
@@ -753,6 +754,7 @@ class API extends Handler {
|
|||||||
|
|
||||||
$headline_row = array(
|
$headline_row = array(
|
||||||
"id" => (int)$line["id"],
|
"id" => (int)$line["id"],
|
||||||
|
"guid" => $line["guid"],
|
||||||
"unread" => sql_bool_to_bool($line["unread"]),
|
"unread" => sql_bool_to_bool($line["unread"]),
|
||||||
"marked" => sql_bool_to_bool($line["marked"]),
|
"marked" => sql_bool_to_bool($line["marked"]),
|
||||||
"published" => sql_bool_to_bool($line["published"]),
|
"published" => sql_bool_to_bool($line["published"]),
|
||||||
|
|||||||
Reference in New Issue
Block a user