|
|
|
@ -298,8 +298,9 @@ class Handler_Public extends Handler {
|
|
|
|
|
function share() {
|
|
|
|
|
$uuid = clean($_REQUEST["key"]);
|
|
|
|
|
|
|
|
|
|
$sth = $this->pdo->prepare("SELECT ref_id, owner_uid FROM ttrss_user_entries WHERE
|
|
|
|
|
uuid = ?");
|
|
|
|
|
if ($uuid) {
|
|
|
|
|
$sth = $this->pdo->prepare("SELECT ref_id, owner_uid
|
|
|
|
|
FROM ttrss_user_entries WHERE uuid = ?");
|
|
|
|
|
$sth->execute([$uuid]);
|
|
|
|
|
|
|
|
|
|
if ($row = $sth->fetch()) {
|
|
|
|
@ -310,11 +311,12 @@ class Handler_Public extends Handler {
|
|
|
|
|
|
|
|
|
|
print $this->format_article($id, $owner_uid);
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
|
|
|
|
|
print "Article not found.";
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
|
|
|
|
|
print "Article not found.";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private function get_article_image($enclosures, $content, $site_url) {
|
|
|
|
|