Browse Source

story: Added a 2-hour grace period for updated tooltip, removed *

1.1
Gisle Aune 6 years ago
parent
commit
94d0a83f46
  1. 4
      marko/components/content-list-item/components/item-meta/component.js

4
marko/components/content-list-item/components/item-meta/component.js

@ -19,10 +19,10 @@ module.exports = class {
this.state.text = dateStr 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) const m2 = moment(updated)
this.state.tooltip = "Originally posted: " + dateStr this.state.tooltip = "Originally posted: " + dateStr
this.state.text = m2.format("MMM D, YYYY") + " *"
this.state.text = m2.format("MMM D, YYYY")
} }
break break

Loading…
Cancel
Save