feat: export complete Discourse themes ecosystem (16 themes, SCSS, JS components and color schemes)

This commit is contained in:
eldov
2026-08-30 18:07:57 +02:00
parent 0d76aaa622
commit 3a411c2643
258 changed files with 16878 additions and 0 deletions
@@ -0,0 +1,14 @@
const UPDATED_AFTER_LAST_POST_THRESHOLD_DAYS = 1;
export function topicWasUpdatedAfterLastPost(topic) {
const bumpedAt = moment(topic.bumped_at);
const lastPostedAt = moment(topic.last_posted_at);
const bumpedLastPostedDaysDiff = moment
.duration(bumpedAt.diff(lastPostedAt))
.asDays();
return (
bumpedAt.isAfter(lastPostedAt) &&
bumpedLastPostedDaysDiff > UPDATED_AFTER_LAST_POST_THRESHOLD_DAYS
);
}