mod: extra jump to reply

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-02 00:46:21 +08:00
parent c3d729fc77
commit 1e83b4557f

View File

@@ -253,7 +253,8 @@ class PiliScheme {
return false; return false;
case 'following': case 'following':
if (path.startsWith("/detail/")) { if (path.startsWith("/detail/")) {
final commentRootId = uri.queryParameters['comment_root_id']; final queryParameters = uri.queryParameters;
final commentRootId = queryParameters['comment_root_id'];
if (commentRootId != null) { if (commentRootId != null) {
String? oid = RegExp(r'/(\d+)').firstMatch(path)?.group(1); String? oid = RegExp(r'/(\d+)').firstMatch(path)?.group(1);
int? rpid = int.tryParse(commentRootId); int? rpid = int.tryParse(commentRootId);
@@ -278,7 +279,12 @@ class PiliScheme {
rpid: rpid, rpid: rpid,
source: 'routePush', source: 'routePush',
replyType: ReplyType.dynamics, replyType: ReplyType.dynamics,
firstFloor: null), firstFloor: null,
id: queryParameters['comment_secondary_id'] != null
? int.tryParse(
queryParameters['comment_secondary_id']!)
: null,
),
), ),
); );
} }