Update Timeline.vue, add remote post/profile links

This commit is contained in:
Daniel Supernault 2020-04-08 21:42:02 -06:00
parent 59d14fd9a8
commit d41470830b
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -1411,22 +1411,19 @@
},
statusUrl(status) {
return status.url;
if(status.local == true) {
return status.url;
}
// if(status.local == true) {
// return status.url;
// }
// return '/i/web/post/_/' + status.account.id + '/' + status.id;
return '/i/web/post/_/' + status.account.id + '/' + status.id;
},
profileUrl(status) {
return status.account.url;
// if(status.local == true) {
// return status.account.url;
// }
if(status.local == true) {
return status.account.url;
}
// return '/i/web/profile/_/' + status.account.id;
return '/i/web/profile/_/' + status.account.id;
},
statusCardUsernameFormat(status) {
@ -1480,13 +1477,6 @@
.then(res => {
this.userStory = res.data;
})
},
usernameLookup(text, cb) {
axios.get('/api/pixelfed/v2/username/lookup?q=' + text)
.then(res => {
cb(res.data);
});
}
}
}