aboutsummaryrefslogtreecommitdiff
path: root/src/components/remote_follow/remote_follow.js
diff options
context:
space:
mode:
authordave <starpumadev@gmail.com>2019-03-19 14:36:27 -0400
committerdave <starpumadev@gmail.com>2019-03-19 14:36:27 -0400
commit07b8115a37a22b2a7d935154e8231c8a90f199d6 (patch)
treef7f430d2686935bff4f8884e1bf5be90ed7d5130 /src/components/remote_follow/remote_follow.js
parent96f9eab7009b30ea71b94c1f4de5180e25b2d75f (diff)
#444 - show `remote follow` button when logged out
Diffstat (limited to 'src/components/remote_follow/remote_follow.js')
-rw-r--r--src/components/remote_follow/remote_follow.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/remote_follow/remote_follow.js b/src/components/remote_follow/remote_follow.js
new file mode 100644
index 00000000..461d58c9
--- /dev/null
+++ b/src/components/remote_follow/remote_follow.js
@@ -0,0 +1,10 @@
+export default {
+ props: [ 'user' ],
+ computed: {
+ subscribeUrl () {
+ // eslint-disable-next-line no-undef
+ const serverUrl = new URL(this.user.statusnet_profile_url)
+ return `${serverUrl.protocol}//${serverUrl.host}/main/ostatus`
+ }
+ }
+}