pl-api: support pixelfed' disabled comments

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2024-12-25 14:39:07 +01:00
parent 51d4797066
commit 262027068f

View File

@ -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;
};