aboutsummaryrefslogtreecommitdiff
path: root/src/components/remote_follow/remote_follow.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2019-03-23 22:21:57 +0200
committershpuld <shp@cock.li>2019-03-23 22:21:57 +0200
commitfd12263cacd2a869ad61dd8580f918b45d9b2a51 (patch)
treec70c4e548923d97893ab6a875cc354cd6895f8e8 /src/components/remote_follow/remote_follow.js
parent85584021fb1042a8934945d73f7d25b38f1c29d1 (diff)
parentf86a5dc80421f496a893efaa98f12f831da0adcb (diff)
merge develop in
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`
+ }
+ }
+}