diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js index f7bff63f..88dbfa24 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, + faMagnet } from '@fortawesome/free-solid-svg-icons' library.add( @@ -23,7 +24,8 @@ library.add( faBell, faSearchPlus, faExternalLinkAlt, - faEdit + faEdit, + faMagnet ) export default { @@ -44,6 +46,14 @@ export default { user () { return this.$store.getters.findUser(this.userId) }, + fediLinkURL () { + console.log(this.user) + try { + return this.user._original.pleroma.ap_id.replace(/^https?/, 'web+ap') + } catch (e) { + return null + } + }, relationship () { return this.$store.getters.relationship(this.userId) }, diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue index 289db15b..77290768 100644 --- a/src/components/user_card/user_card.vue +++ b/src/components/user_card/user_card.vue @@ -61,12 +61,25 @@ :href="user.statusnet_profile_url" target="_blank" class="button-unstyled external-link-button" + :title="$t('user_card.external_source')" > + + +