From 7ed65fc9fed1706b6808a09b4f01a36261eb1b4f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 20 Jul 2021 18:06:57 -0600 Subject: [PATCH 1/6] Update PostComponent, use profileUrl method for comments --- .../assets/js/components/PostComponent.vue | 14 +++++++-- resources/assets/js/components/PostMenu.vue | 29 ++++++++++++++++--- 2 files changed, 36 insertions(+), 7 deletions(-) diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index 7b4e50456..c401d7857 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -149,7 +149,7 @@
- {{truncate(reply.account.username,15)}} + {{!reply.account.local ? '@' : '' }}{{truncate(reply.account.username,15)}} This comment may contain sensitive material Show @@ -159,7 +159,7 @@

- {{truncate(reply.account.username,15)}} + {{!reply.account.local ? '@' : '' }}{{truncate(reply.account.username,15)}} @@ -182,7 +182,7 @@

- {{s.account.username}} + {{!s.account.local ? '@' : '' }}{{s.account.username}} @@ -1567,6 +1567,14 @@ export default { return '/i/web/post/_/' + status.account.id + '/' + status.id; }, + profileUrl(status) { + if(status.local == true) { + return status.account.url; + } + + return '/i/web/profile/_/' + status.account.id; + }, + showTaggedPeopleModal() { if(!$('body').hasClass('loggedIn') && this.loaded) { return; diff --git a/resources/assets/js/components/PostMenu.vue b/resources/assets/js/components/PostMenu.vue index a4d12d866..55b7c3de0 100644 --- a/resources/assets/js/components/PostMenu.vue +++ b/resources/assets/js/components/PostMenu.vue @@ -49,16 +49,17 @@