diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index fcfa03e21..836857e22 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -73,7 +73,7 @@ window.App.util = { timeAgo: (function(ts) { let date = Date.parse(ts); let seconds = Math.floor((new Date() - date) / 1000); - let interval = Math.floor(seconds / 31536000); + let interval = Math.floor(seconds / 63072000); if (interval >= 1) { return interval + "y"; } diff --git a/resources/assets/js/components/ProfileDirectory.vue b/resources/assets/js/components/ProfileDirectory.vue index b17d03f30..4f64b0c9e 100644 --- a/resources/assets/js/components/ProfileDirectory.vue +++ b/resources/assets/js/components/ProfileDirectory.vue @@ -16,9 +16,6 @@ {{prettyCount(profile.statuses_count)}} POSTS - - {{postsPerDay(profile)}} POSTS/DAY - {{prettyCount(profile.followers_count)}} FOLLOWERS @@ -105,19 +102,6 @@ thumbUrl(p) { return p.media_attachments[0].url; - }, - - postsPerDay(profile) { - let created = profile.created_at; - let now = Date.now(); - let diff = Math.abs(created, now) - let day = 1000 * 60 * 60 * 24; - let days = Math.round(diff / day); - - let statuses = profile.statuses_count; - - let perDay = this.prettyCount(Math.floor(statuses / days)); - return perDay; } } }