From cc15ec6543b870ffafaeb501c9733fe8f7b3b9bc Mon Sep 17 00:00:00 2001 From: notfire Date: Tue, 12 Aug 2025 13:36:37 -0400 Subject: [PATCH] add link to user card to open the user in iceshrimp-fe --- src/components/user_card/user_card.js | 13 ++++++++++--- src/components/user_card/user_card.vue | 11 +++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js index 37376846..e4ca267d 100644 --- a/src/components/user_card/user_card.js +++ b/src/components/user_card/user_card.js @@ -15,7 +15,8 @@ import { faRss, faSearchPlus, faExternalLinkAlt, - faEdit + faEdit, + faShrimp } from '@fortawesome/free-solid-svg-icons' library.add( @@ -23,7 +24,8 @@ library.add( faBell, faSearchPlus, faExternalLinkAlt, - faEdit + faEdit, + faShrimp ) export default { @@ -66,7 +68,7 @@ export default { return this.user.id !== this.$store.state.users.currentUser.id }, subscribeUrl () { - + const serverUrl = new URL(this.user.statusnet_profile_url) return `${serverUrl.protocol}//${serverUrl.host}/main/ostatus` }, @@ -201,6 +203,11 @@ export default { }, biteUser () { return this.$store.dispatch('biteUser', this.user.id) + }, + userOnOurInstance (user) { + let us = this.$store.state.users.currentUser + let inst = us.statusnet_profile_url.replace("@" + us.screen_name, "") + return inst + '@' + user.screen_name } } } diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue index 8aa2ea69..dc876522 100644 --- a/src/components/user_card/user_card.vue +++ b/src/components/user_card/user_card.vue @@ -147,6 +147,17 @@ icon="rss" /> + + +