👽 Update publisher api

This commit is contained in:
LittleSheep 2024-12-11 22:31:18 +08:00
parent 3b1d291037
commit f47f1b175a
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class _PublisherScreenState extends State<PublisherScreen> {
setState(() => _isBusy = true);
try {
final resp = await sn.client.get('/cgi/co/publishers');
final resp = await sn.client.get('/cgi/co/publishers/me');
final List<SnPublisher> out = List<SnPublisher>.from(
resp.data?.map((e) => SnPublisher.fromJson(e)) ?? []);

View File

@ -145,6 +145,7 @@ class _PostSearchScreenState extends State<PostSearchScreen> {
padding: const WidgetStatePropertyAll(
EdgeInsets.symmetric(horizontal: 24),
),
onTapOutside: (_) => FocusManager.instance.primaryFocus?.unfocus(),
onChanged: (value) {
_searchTerm = value;
},