Add remote follow button to local user profiles.

This commit is contained in:
eal 2018-02-01 21:30:49 +02:00
parent 3ff39f9b39
commit 689afecb65
3 changed files with 27 additions and 1 deletions

View file

@ -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
},