🐛 Dozens of bug fixes

This commit is contained in:
2025-07-18 18:57:16 +08:00
parent e6c58b7b63
commit 3a4faac8cb
10 changed files with 48 additions and 33 deletions

View File

@@ -6,7 +6,7 @@ part of 'account_picker.dart';
// RiverpodGenerator
// **************************************************************************
String _$searchAccountsHash() => r'4923cd06876d04515d95d3c58ee3ea9e05c58e4a';
String _$searchAccountsHash() => r'fa3b8b7d51e14cf40d4116ba0ff0b6955fa0ff54';
/// Copied from Dart SDK
class _SystemHash {

View File

@@ -467,7 +467,7 @@ class ComposeLogic {
final attachment = state.attachments.value[index];
if (attachment.isOnCloud) {
final client = ref.watch(apiClientProvider);
await client.delete('/files/${attachment.data.id}');
await client.delete('/drive/files/${attachment.data.id}');
}
final clone = List.of(state.attachments.value);
clone.removeAt(index);
@@ -530,7 +530,8 @@ class ComposeLogic {
// Prepare API request
final client = ref.watch(apiClientProvider);
final isNewPost = originalPost == null;
final endpoint = isNewPost ? '/posts' : '/posts/${originalPost.id}';
final endpoint =
'/sphere${isNewPost ? '/posts' : '/posts/${originalPost.id}'}';
// Create request payload
final payload = {