1
0
mirror of https://github.com/NicolasConstant/sengi synced 2025-02-02 19:46:59 +01:00

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

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) => {