1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2025-03-12 23:28:12 +00:00

Update Profile component, rewrite local profile urls

This commit is contained in:
Daniel Supernault 2025-03-12 00:36:32 -06:00
parent d2f2a1b1cf
commit dfbccaa195
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -131,6 +131,9 @@
// this.fetchPosts();
// this.isLoaded = true;
this.fetchRelationship();
if(this.cachedProfile && this.cachedProfile.local) {
window.history.pushState({}, '', `/${this.cachedProfile.acct}`);
}
} else {
this.curUser = window._sharedData.user;
this.fetchProfile();
@ -164,6 +167,10 @@
this.owner = false;
this.fetchRelationship();
}
if(res.data && res.data.local) {
window.history.pushState({}, '', `/${res.data.acct}`);
}
})
.catch(err => {
this.$router.push('/i/web/404');