pl-fe: submit custom css conditionally

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-04-29 00:00:02 +02:00
parent 7ea1a9eb11
commit 4ac86ba0e4

View File

@ -240,6 +240,8 @@ const EditProfile: React.FC = () => {
if (header.file !== undefined) params.header = header.file || '';
if (avatar.file !== undefined) params.avatar = avatar.file || '';
if (!instance.configuration.accounts?.allow_custom_css) delete params.custom_css;
promises.push(dispatch(patchMe(params as any)));
if (features.muteStrangers) {