From cc15ec6543b870ffafaeb501c9733fe8f7b3b9bc Mon Sep 17 00:00:00 2001 From: notfire Date: Tue, 12 Aug 2025 13:36:37 -0400 Subject: [PATCH 1/3] 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" /> + + + Date: Tue, 12 Aug 2025 13:39:55 -0400 Subject: [PATCH 2/3] update readme re: last commit --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 373b3b15..2890bafa 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ - add toggle for showing post edit notifications - add support for accepted follow request notifications - add option to prevent page from getting pushed when making a new post with streaming api enabled (similar to 3rd "for unreads" option) +- add link on user card to open profiles in iceshrimp-fe - add a script to download ruffle for flash support (requires python3 and requests library) - download by entering `tools/` and running `python3 download_ruffle.py` From 9eded4eb779be252cef8652438a057c5bb319f94 Mon Sep 17 00:00:00 2001 From: notfire Date: Tue, 12 Aug 2025 13:43:46 -0400 Subject: [PATCH 3/3] remove whitespace that somehow appeared thanks webstorm --- src/components/user_card/user_card.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js index e4ca267d..c9e8bf34 100644 --- a/src/components/user_card/user_card.js +++ b/src/components/user_card/user_card.js @@ -68,7 +68,6 @@ 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` },