added cwPolicy to remote status

This commit is contained in:
Nicolas Constant 2020-04-06 22:11:50 -04:00
parent 6268fa405b
commit 918a969c2d
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 4 additions and 4 deletions

View File

@ -217,10 +217,10 @@ export class ThreadComponent implements OnInit, OnDestroy {
let remoteStatuses = [...context.ancestors, ...context.descendants];
let unknownStatuses = remoteStatuses.filter(x => !this.statuses.find(y => y.status.url == x.url));
for(let s of unknownStatuses){
//TODO fetch settings
let wrapper = new StatusWrapper(s, null, false, false);
for(let s of unknownStatuses){
let cwPolicy = this.toolsService.checkContentWarning(s);
let wrapper = new StatusWrapper(s, null, cwPolicy.applyCw, cwPolicy.hide);
wrapper.isRemote = true;
this.statuses.push(wrapper);
this.statuses.sort((a,b) => {