diff options
author | Andrew Dolgov <[email protected]> | 2019-09-11 11:43:40 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-09-11 11:43:40 +0300 |
commit | 94a12b9674ac3ce22c1f444f097892d6295f52dc (patch) | |
tree | 4e7243567738d7125ba56cc7ef7ea8854e958e6d /classes | |
parent | 06393750c75a6aab822eede28ac4f8908f564550 (diff) |
pass formatted entry timestamp to article filters and allow them to modify it
Diffstat (limited to 'classes')
-rwxr-xr-x | classes/rssutils.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php index fe4c0a8a3..7f11fce43 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -656,6 +656,7 @@ class RSSUtils { "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 "language" => $entry_language, + "timestamp" => $entry_timestamp_fmt, "num_comments" => $num_comments, // read only "feed" => array("id" => $feed, "fetch_url" => $fetch_url, @@ -797,6 +798,7 @@ class RSSUtils { $article_labels = $article["labels"]; $entry_score_modifier = (int) $article["score_modifier"]; $entry_language = $article["language"]; + $entry_timestamp_fmt = $article["timestamp"]; if (Debug::get_loglevel() >= Debug::$LOG_EXTENDED) { Debug::log("article labels:", Debug::$LOG_VERBOSE); |