pass formatted entry timestamp to article filters and allow them to modify it
This commit is contained in:
parent
06393750c7
commit
94a12b9674
|
@ -656,6 +656,7 @@ class RSSUtils {
|
||||||
"force_catchup" => false, // ugly hack for the time being
|
"force_catchup" => false, // ugly hack for the time being
|
||||||
"score_modifier" => 0, // no previous value, plugin should recalculate score modifier based on content if needed
|
"score_modifier" => 0, // no previous value, plugin should recalculate score modifier based on content if needed
|
||||||
"language" => $entry_language,
|
"language" => $entry_language,
|
||||||
|
"timestamp" => $entry_timestamp_fmt,
|
||||||
"num_comments" => $num_comments, // read only
|
"num_comments" => $num_comments, // read only
|
||||||
"feed" => array("id" => $feed,
|
"feed" => array("id" => $feed,
|
||||||
"fetch_url" => $fetch_url,
|
"fetch_url" => $fetch_url,
|
||||||
|
@ -797,6 +798,7 @@ class RSSUtils {
|
||||||
$article_labels = $article["labels"];
|
$article_labels = $article["labels"];
|
||||||
$entry_score_modifier = (int) $article["score_modifier"];
|
$entry_score_modifier = (int) $article["score_modifier"];
|
||||||
$entry_language = $article["language"];
|
$entry_language = $article["language"];
|
||||||
|
$entry_timestamp_fmt = $article["timestamp"];
|
||||||
|
|
||||||
if (Debug::get_loglevel() >= Debug::$LOG_EXTENDED) {
|
if (Debug::get_loglevel() >= Debug::$LOG_EXTENDED) {
|
||||||
Debug::log("article labels:", Debug::$LOG_VERBOSE);
|
Debug::log("article labels:", Debug::$LOG_VERBOSE);
|
||||||
|
|
Loading…
Reference in New Issue