1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2025-01-31 03:13:04 +00:00

Update Timeline component, hide sensitive comments

This commit is contained in:
Daniel Supernault 2019-06-18 22:32:34 -06:00
parent 92591edb49
commit 0b3c3021f5
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -696,7 +696,9 @@
fetchStatusComments(status, card) { fetchStatusComments(status, card) {
axios.get('/api/v2/status/'+status.id+'/replies') axios.get('/api/v2/status/'+status.id+'/replies')
.then(res => { .then(res => {
let data = res.data; let data = res.data.filter(res => {
return res.sensitive == false;
});
this.replies = _.reverse(data); this.replies = _.reverse(data);
}).catch(err => { }).catch(err => {
}) })