From 550c74e5449e3532ce2e4bd104899851625a0e50 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 8 Aug 2025 23:23:16 +0800 Subject: [PATCH] :bug: Fix unable to subscribe --- lib/screens/posts/pub_profile.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/screens/posts/pub_profile.dart b/lib/screens/posts/pub_profile.dart index d924cd8..04abb70 100644 --- a/lib/screens/posts/pub_profile.dart +++ b/lib/screens/posts/pub_profile.dart @@ -99,7 +99,10 @@ class PublisherProfileScreen extends HookConsumerWidget { final apiClient = ref.watch(apiClientProvider); subscribing.value = true; try { - await apiClient.post("/publishers/$name/subscribe", data: {'tier': 0}); + await apiClient.post( + "/sphere/publishers/$name/subscribe", + data: {'tier': 0}, + ); ref.invalidate(publisherSubscriptionStatusProvider(name)); HapticFeedback.heavyImpact(); } catch (err) { @@ -113,7 +116,7 @@ class PublisherProfileScreen extends HookConsumerWidget { final apiClient = ref.watch(apiClientProvider); subscribing.value = true; try { - await apiClient.post("/publishers/$name/unsubscribe"); + await apiClient.post("/sphere/publishers/$name/unsubscribe"); ref.invalidate(publisherSubscriptionStatusProvider(name)); HapticFeedback.heavyImpact(); } catch (err) {