1
0
Fork 0
forked from mirror/pixelfed

Update Remote Post + Profile hashtag to redirect to local urls

This commit is contained in:
Daniel Supernault 2021-06-18 05:03:40 -06:00
parent 27fbe88438
commit 1fa08644b4
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 1388 additions and 1379 deletions

View file

@ -591,6 +591,9 @@ export default {
if(this.showReadMore == true) { if(this.showReadMore == true) {
window.pixelfed.readmore(); window.pixelfed.readmore();
} }
document.querySelectorAll('.hashtag').forEach(function(i, e) {
i.href = App.util.format.rewriteLinks(i);
});
}, },
methods: { methods: {

View file

@ -227,6 +227,12 @@
this.fetchProfile(); this.fetchProfile();
}, },
updated() {
document.querySelectorAll('.hashtag').forEach(function(i, e) {
i.href = App.util.format.rewriteLinks(i);
});
},
methods: { methods: {
fetchProfile() { fetchProfile() {