mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
mod: extra jump to reply
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user