story: Added a 2-hour grace period for updated tooltip, removed *
the build was successful

This commit is contained in:
2018-10-27 09:51:42 +02:00
parent 824a8dae23
commit 94d0a83f46
@@ -19,10 +19,10 @@ module.exports = class {
this.state.text = dateStr
if (updated != null && Date.parse(updated) > Date.parse(value)) {
if (updated != null && Date.parse(updated) > (Date.parse(value) + 7200000)) {
const m2 = moment(updated)
this.state.tooltip = "Originally posted: " + dateStr
this.state.text = m2.format("MMM D, YYYY") + " *"
this.state.text = m2.format("MMM D, YYYY")
}
break