|
|
|
@ -2989,11 +2989,6 @@
|
|
|
|
|
</head><body>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$title_escaped = htmlspecialchars($line['title']);
|
|
|
|
|
|
|
|
|
|
$rv['content'] .= "<div id=\"PTITLE-FULL-$id\" style=\"display : none\">" .
|
|
|
|
|
strip_tags($line['title']) . "</div>";
|
|
|
|
|
|
|
|
|
|
$rv['content'] .= "<div class=\"postReply\" id=\"POST-$id\">";
|
|
|
|
|
|
|
|
|
|
$rv['content'] .= "<div class=\"postHeader\" id=\"POSTHDR-$id\">";
|
|
|
|
@ -3091,31 +3086,6 @@
|
|
|
|
|
|
|
|
|
|
$rv['content'] .= "<div class=\"postContent\">";
|
|
|
|
|
|
|
|
|
|
// N-grams
|
|
|
|
|
|
|
|
|
|
if (DB_TYPE == "pgsql" and defined('_NGRAM_TITLE_RELATED_THRESHOLD')) {
|
|
|
|
|
|
|
|
|
|
$ngram_result = db_query($link, "SELECT id,title FROM
|
|
|
|
|
ttrss_entries,ttrss_user_entries
|
|
|
|
|
WHERE ref_id = id AND updated >= NOW() - INTERVAL '7 day'
|
|
|
|
|
AND similarity(title, '$title_escaped') >= "._NGRAM_TITLE_RELATED_THRESHOLD."
|
|
|
|
|
AND title != '$title_escaped'
|
|
|
|
|
AND owner_uid = $owner_uid");
|
|
|
|
|
|
|
|
|
|
if (db_num_rows($ngram_result) > 0) {
|
|
|
|
|
$rv['content'] .= "<div dojoType=\"dijit.form.DropDownButton\">".
|
|
|
|
|
"<span>" . __('Related')."</span>";
|
|
|
|
|
$rv['content'] .= "<div dojoType=\"dijit.Menu\" style=\"display: none;\">";
|
|
|
|
|
|
|
|
|
|
while ($nline = db_fetch_assoc($ngram_result)) {
|
|
|
|
|
$rv['content'] .= "<div onclick=\"hlOpenInNewTab(null,".$nline['id'].")\"
|
|
|
|
|
dojoType=\"dijit.MenuItem\">".$nline['title']."</div>";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
$rv['content'] .= "</div></div><br/";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$rv['content'] .= $line["content"];
|
|
|
|
|
|
|
|
|
|
$rv['content'] .= format_article_enclosures($link, $id,
|
|
|
|
|