Add remote follow button to local user profiles.
This commit is contained in:
parent
3ff39f9b39
commit
689afecb65
3 changed files with 27 additions and 1 deletions
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue