From 4ac86ba0e49bb2e556c2f3c6b06985f8bb4ca8cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicole=20Miko=C5=82ajczyk?= Date: Tue, 29 Apr 2025 00:00:02 +0200 Subject: [PATCH] pl-fe: submit custom css conditionally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicole Mikołajczyk --- packages/pl-fe/src/features/edit-profile/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/pl-fe/src/features/edit-profile/index.tsx b/packages/pl-fe/src/features/edit-profile/index.tsx index a9a5f8c3c..04c410597 100644 --- a/packages/pl-fe/src/features/edit-profile/index.tsx +++ b/packages/pl-fe/src/features/edit-profile/index.tsx @@ -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) {