diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index 8471cd6d4..07c7fe8e6 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -103,6 +103,32 @@ window.App.util = { } return Math.floor(seconds) + "s"; }), + timeAhead: (function(ts) { + let date = Date.parse(ts); + let diff = date - Date.parse(new Date()); + let seconds = Math.floor((diff) / 1000); + let interval = Math.floor(seconds / 63072000); + if (interval >= 1) { + return interval + "y"; + } + interval = Math.floor(seconds / 604800); + if (interval >= 1) { + return interval + "w"; + } + interval = Math.floor(seconds / 86400); + if (interval >= 1) { + return interval + "d"; + } + interval = Math.floor(seconds / 3600); + if (interval >= 1) { + return interval + "h"; + } + interval = Math.floor(seconds / 60); + if (interval >= 1) { + return interval + "m"; + } + return Math.floor(seconds) + "s"; + }), rewriteLinks: (function(i) { let tag = i.innerText; @@ -233,7 +259,7 @@ window.App.util = { $('#navbarDropdown img').attr('src',window._sharedData.curUser.avatar) .removeClass('d-none') .addClass('rounded-circle border shadow') - .attr('width', 34).attr('height', 34); + .attr('width', 38).attr('height', 38); }) }; diff --git a/resources/assets/js/components/Activity.vue b/resources/assets/js/components/Activity.vue index 6e03b1779..2b3e68686 100644 --- a/resources/assets/js/components/Activity.vue +++ b/resources/assets/js/components/Activity.vue @@ -27,6 +27,21 @@ {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} commented on your post.
++ {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} commented on your group post. +
++ {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} reacted to your story. +
++ {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} commented on your story. +
+{{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} mentioned you. diff --git a/resources/assets/js/components/ComposeModal.vue b/resources/assets/js/components/ComposeModal.vue index 076a0c746..acc332f2d 100644 --- a/resources/assets/js/components/ComposeModal.vue +++ b/resources/assets/js/components/ComposeModal.vue @@ -68,7 +68,7 @@
@@ -253,7 +253,7 @@
Add Photo to Story
+Add to your story