diff options
| author | eal <eal@waifu.club> | 2018-02-01 21:30:49 +0200 |
|---|---|---|
| committer | eal <eal@waifu.club> | 2018-02-01 21:30:49 +0200 |
| commit | 689afecb65019f838fb6ef4d9dd7756cb12c05fb (patch) | |
| tree | 1347e7c196246ce050f95ab98d062f31949c2814 /src/components/user_card_content/user_card_content.js | |
| parent | 3ff39f9b392013856c26d63ef3a318b02287eb34 (diff) | |
Add remote follow button to local user profiles.
Diffstat (limited to 'src/components/user_card_content/user_card_content.js')
| -rw-r--r-- | src/components/user_card_content/user_card_content.js | 5 |
1 files changed, 5 insertions, 0 deletions
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 }, |
