From 336bb88ca45aebb23dc4e0e78b19b1f9712bdc17 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 12 Dec 2024 00:08:48 +0800 Subject: [PATCH] :bug: Bug fixes due to api endpoint changed --- lib/screens/post/post_editor.dart | 2 +- lib/widgets/post/post_mini_editor.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/screens/post/post_editor.dart b/lib/screens/post/post_editor.dart index f5f64f1..5e5f23f 100644 --- a/lib/screens/post/post_editor.dart +++ b/lib/screens/post/post_editor.dart @@ -55,7 +55,7 @@ class _PostEditorScreenState extends State { try { final sn = context.read(); - final resp = await sn.client.get('/cgi/co/publishers'); + final resp = await sn.client.get('/cgi/co/publishers/me'); _publishers = List.from( resp.data?.map((e) => SnPublisher.fromJson(e)) ?? [], ); diff --git a/lib/widgets/post/post_mini_editor.dart b/lib/widgets/post/post_mini_editor.dart index 24a267d..aac53fa 100644 --- a/lib/widgets/post/post_mini_editor.dart +++ b/lib/widgets/post/post_mini_editor.dart @@ -35,7 +35,7 @@ class _PostMiniEditorState extends State { try { final sn = context.read(); - final resp = await sn.client.get('/cgi/co/publishers'); + final resp = await sn.client.get('/cgi/co/publishers/me'); _publishers = List.from( resp.data?.map((e) => SnPublisher.fromJson(e)) ?? [], );