From 7d56c5ef31441b16f2ca493751a0f5fca8005acf Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 15 Feb 2025 19:45:33 +0800 Subject: [PATCH] :bug: Fix reply / forward post type will follow the target post --- lib/widgets/post/post_item.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widgets/post/post_item.dart b/lib/widgets/post/post_item.dart index 48a4700..7d90ecd 100644 --- a/lib/widgets/post/post_item.dart +++ b/lib/widgets/post/post_item.dart @@ -965,7 +965,7 @@ class _PostContentHeader extends StatelessWidget { onTap: () { GoRouter.of(context).pushNamed( 'postEditor', - pathParameters: {'mode': data.typePlural}, + pathParameters: {'mode': 'stories'}, queryParameters: {'replying': data.id.toString()}, ); }, @@ -981,7 +981,7 @@ class _PostContentHeader extends StatelessWidget { onTap: () { GoRouter.of(context).pushNamed( 'postEditor', - pathParameters: {'mode': data.typePlural}, + pathParameters: {'mode': 'stories'}, queryParameters: {'reposting': data.id.toString()}, ); },