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:
parent
6268fa405b
commit
918a969c2d
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user