-
- /**
- * Determines whether a server check is necessary.
- *
- * Any content that is >30 days old never gets a "new" or "updated"
- * indicator. Any content that was published before the oldest known reading
- * also never gets a "new" or "updated" indicator, because it must've been
- * read already.
- *
- * @param {number|string} nodeID
- * A node ID.
- * @param {number} contentTimestamp
- * The time at which some content (e.g. a comment) was published.
- *
- * @return {bool}
- * Whether a server check is necessary for the given node and its
- * timestamp.
- */
- needsServerCheck: function (nodeID, contentTimestamp) {
- // First check if the content is older than 30 days, then we can bail
- // early.