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:
parent
92591edb49
commit
0b3c3021f5
1 changed files with 11 additions and 9 deletions
|
@ -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 => {
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue