Skip to content
Snippets Groups Projects
Commit 8bdd4fd0 authored by MeiMei's avatar MeiMei Committed by syuilo
Browse files

Resolve #5582 (#5583)

parent f3b518fb
No related branches found
No related tags found
No related merge requests found
......@@ -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({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment