fix rpc/cdmGetArticle for archived articles
This commit is contained in:
parent
7fdf8eca99
commit
9a0e28f4da
|
@ -703,9 +703,10 @@ class RPC extends Handler_Protected {
|
||||||
$id = (int)$id;
|
$id = (int)$id;
|
||||||
|
|
||||||
$result = db_query($this->link, "SELECT content,
|
$result = db_query($this->link, "SELECT content,
|
||||||
ttrss_feeds.site_url AS site_url FROM ttrss_user_entries, ttrss_feeds,
|
ttrss_feeds.site_url AS site_url FROM ttrss_user_entries
|
||||||
|
LEFT JOIN ttrss_feeds ON (ttrss_feeds.id = ttrss_user_entries.feed_id),
|
||||||
ttrss_entries
|
ttrss_entries
|
||||||
WHERE feed_id = ttrss_feeds.id AND ref_id = '$id' AND
|
WHERE ref_id = '$id' AND
|
||||||
ttrss_entries.id = ref_id AND
|
ttrss_entries.id = ref_id AND
|
||||||
ttrss_user_entries.owner_uid = ".$_SESSION["uid"]);
|
ttrss_user_entries.owner_uid = ".$_SESSION["uid"]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue