From 689afecb65019f838fb6ef4d9dd7756cb12c05fb Mon Sep 17 00:00:00 2001 From: eal Date: Thu, 1 Feb 2018 21:30:49 +0200 Subject: Add remote follow button to local user profiles. --- src/components/user_card_content/user_card_content.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/components/user_card_content/user_card_content.js') diff --git a/src/components/user_card_content/user_card_content.js b/src/components/user_card_content/user_card_content.js index 6e67a321..32d62ebb 100644 --- a/src/components/user_card_content/user_card_content.js +++ b/src/components/user_card_content/user_card_content.js @@ -22,6 +22,11 @@ export default { isOtherUser () { return this.user.id !== this.$store.state.users.currentUser.id }, + subscribeUrl () { + // eslint-disable-next-line no-undef + const serverUrl = new URL(this.user.statusnet_profile_url) + return `${serverUrl.protocol}//${serverUrl.host}/main/ostatus` + }, loggedIn () { return this.$store.state.users.currentUser }, -- cgit v1.2.3-70-g09d2