mod: save panel (#1706)

This commit is contained in:
My-Responsitories
2025-10-25 18:23:42 +08:00
committed by GitHub
parent 1a9d8e35ba
commit b43840b636
3 changed files with 77 additions and 60 deletions

View File

@@ -644,16 +644,14 @@ abstract final class PiliScheme {
if (res.isNotEmpty) {
final queryParameters = uri.queryParameters;
final rootIdStr = queryParameters['comment_root_id'];
final part = queryParameters['p'];
if (rootIdStr != null) {
VideoReplyReplyPanel.toReply(
res.av ?? IdUtils.bv2av(res.bv!),
int.parse(rootIdStr),
queryParameters['comment_secondary_id'],
1,
uri.replace(
queryParameters: Map.of(queryParameters)
..remove('comment_root_id'),
),
uri.replace(query: part != null ? 'p=$part' : ''),
);
return true;
}
@@ -662,7 +660,7 @@ abstract final class PiliScheme {
res.bv,
off: off,
progress: queryParameters['dm_progress'],
part: queryParameters['p'],
part: part,
);
return true;
}