diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-11-06 23:56:56 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-11-06 23:56:56 +0900 |
| commit | 8bdd4fd06164f1fcffcbcf61b97161e7b49c36cf (patch) | |
| tree | 42374fbc77c8a85ea8e6b369b592cc49561c4a55 /src/client/app/common/views | |
| parent | Update yarn.lock (#5584) (diff) | |
| download | sharkey-8bdd4fd06164f1fcffcbcf61b97161e7b49c36cf.tar.gz sharkey-8bdd4fd06164f1fcffcbcf61b97161e7b49c36cf.tar.bz2 sharkey-8bdd4fd06164f1fcffcbcf61b97161e7b49c36cf.zip | |
Resolve #5582 (#5583)
Diffstat (limited to 'src/client/app/common/views')
| -rw-r--r-- | src/client/app/common/views/pages/follow.vue | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client/app/common/views/pages/follow.vue b/src/client/app/common/views/pages/follow.vue index 4a01affa8a..c7b07a5be2 100644 --- a/src/client/app/common/views/pages/follow.vue +++ b/src/client/app/common/views/pages/follow.vue @@ -76,13 +76,15 @@ export default Vue.extend({ this.$root.api('ap/show', { uri: acct }).then((res: { type: string, object: any }) => { - if (res.type !== 'User') { + if (res.type === 'User') { + this.user = res.object; + } else if (res.type === 'Note') { + this.$router.replace(`/notes/${res.object.id}`); + } else { this.$root.dialog({ type: 'error', - text: 'acct is not an user' + text: 'Not supported' }); - } else { - this.user = res.object; } }).catch((e: any) => { this.$root.dialog({ |