summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-09-14 15:31:37 +0200
committerRobin Appelman <robin@icewind.nl>2020-09-18 19:25:13 +0200
commit952ffb94a68440cc93d383a30e40e78e24cd9d5d (patch)
tree9f81b6009365b7b91714b5fa14462cba93e94254 /src
parent8e6b2d3c49ecdfead2cce9780537e600b0e3b4c7 (diff)
render profile page for ostatus follow url
when initiating a follow from a remote mastadon instance, the user gets directed to 'apps/social/ostatus/follow/?uri=' which is currently broken. this changes it to render the regular profile page for that link, allowing the user to follow the profile. I'm not sure what the previous behavior was before things got broken Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'src')
-rw-r--r--src/router.js8
-rw-r--r--src/views/Profile.vue2
2 files changed, 9 insertions, 1 deletions
diff --git a/src/router.js b/src/router.js
index 696c62e2..bb797aaf 100644
--- a/src/router.js
+++ b/src/router.js
@@ -97,6 +97,14 @@ export default new Router({
}
}
]
+ },
+ {
+ path: '/:index(index.php/)?apps/social/ostatus/follow',
+ components: {
+ default: Profile,
+ details: ProfileTimeline
+ },
+ props: true,
}
]
})
diff --git a/src/views/Profile.vue b/src/views/Profile.vue
index 109dd9d0..7e9f7e8d 100644
--- a/src/views/Profile.vue
+++ b/src/views/Profile.vue
@@ -81,7 +81,7 @@ export default {
beforeMount() {
let fetchMethod = ''
- this.uid = this.$route.params.account
+ this.uid = this.$route.params.account || this.serverData.account
// Are we authenticated?
if (this.serverData.public) {