pl-api: support pixelfed' disabled comments
Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
@ -131,6 +131,14 @@ const preprocess = (status: any) => {
|
||||
...status,
|
||||
};
|
||||
|
||||
if (!status.interaction_policy && status.comments_disabled === true) {
|
||||
status.interaction_policy = {
|
||||
can_reply: {
|
||||
always: ['author'],
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
return status;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user