ft-interactive / starter-kit

A template for IG pages
64 stars 15 forks source link

Set config.openCommentsAt #324

Closed pandringa closed 7 months ago

pandringa commented 8 months ago

This PR updates the config/article.js template to set the openCommentsAt flag based on the publishedDate value. (If a developer wants to configure this date separately from the publishedDate, all they need to do is add an entry to the config element right below it.

This config is used by my new PR in g-components to avoid starting the 48-hour comment window until after the publication date: https://github.com/Financial-Times/g-components/pull/252