aboutsummaryrefslogtreecommitdiff
path: root/src/components/remote_follow/remote_follow.js
diff options
context:
space:
mode:
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`
+ }
+ }
+}