💄 Optimization styles

This commit is contained in:
2025-08-04 18:20:13 +08:00
parent 1aa45dd9f1
commit ba269dbbb8
5 changed files with 171 additions and 188 deletions

View File

@@ -670,11 +670,9 @@ class ComposeLogic {
// Send request
await client.request(
endpoint,
queryParameters: {'pub': state.currentPublisher.value?.name},
data: payload,
options: Options(
headers: {'X-Pub': state.currentPublisher.value?.name},
method: isNewPost ? 'POST' : 'PATCH',
),
options: Options(method: isNewPost ? 'POST' : 'PATCH'),
);
// Delete draft after successful submission