diff --git a/app/assets/javascripts/discourse/app/components/post-stream.gjs b/app/assets/javascripts/discourse/app/components/post-stream.gjs index a6b06a75f3a0c..b815d2b2be1ca 100644 --- a/app/assets/javascripts/discourse/app/components/post-stream.gjs +++ b/app/assets/javascripts/discourse/app/components/post-stream.gjs @@ -119,8 +119,8 @@ export default class PostStream extends Component { } daysBetween(post1, post2) { - const time1 = post1 ? new Date(post1.createdAt).getTime() : null; - const time2 = post2 ? new Date(post2.createdAt).getTime() : null; + const time1 = post1 ? new Date(post1.created_at).getTime() : null; + const time2 = post2 ? new Date(post2.created_at).getTime() : null; if (!time1 || !time2) { return null; diff --git a/app/assets/javascripts/discourse/app/components/post/links.gjs b/app/assets/javascripts/discourse/app/components/post/links.gjs index 3792af7cd9cfc..9b99728eedf83 100644 --- a/app/assets/javascripts/discourse/app/components/post/links.gjs +++ b/app/assets/javascripts/discourse/app/components/post/links.gjs @@ -1,6 +1,7 @@ import Component from "@glimmer/component"; import { cached, tracked } from "@glimmer/tracking"; import { action } from "@ember/object"; +import { gt } from "truth-helpers"; import DButton from "discourse/components/d-button"; import icon from "discourse/helpers/d-icon"; import replaceEmoji from "discourse/helpers/replace-emoji"; @@ -51,7 +52,7 @@ export default class PostLinks extends Component {