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
1 changed files with 8 additions and 18 deletions

View File

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