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:
parent
c27e04dfec
commit
d2f2a1b1cf
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue