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

Update Post component, rewrite local post urls

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

View file

@ -203,6 +203,9 @@
this.post = res.data;
this.media = this.post.media_attachments;
this.profile = this.post.account;
if(res.data.account && res.data.account.local) {
window.history.pushState({}, '', `/p/${res.data.account.acct}/${res.data.id}`);
}
if(this.post.in_reply_to_id) {
this.fetchReply();
} else {