mod: push article

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-09 09:31:24 +08:00
parent afd508f28b
commit 9657c77999
2 changed files with 24 additions and 0 deletions

View File

@@ -852,6 +852,18 @@ class ReplyItem extends StatelessWidget {
'dynamicType': 'read'
});
} else {
String? cvId = RegExp(r'/read/(cv\d+)')
.firstMatch(matchStr)
?.group(1);
if (cvId != null) {
Get.toNamed('/htmlRender', parameters: {
'url': matchStr,
'title': title,
'id': cvId,
'dynamicType': 'read'
});
return;
}
final String redirectUrl =
(await UrlUtils.parseRedirectUrl(matchStr)) ??
matchStr;

View File

@@ -891,6 +891,18 @@ class ReplyItemGrpc extends StatelessWidget {
'dynamicType': 'read'
});
} else {
String? cvId = RegExp(r'/read/(cv\d+)')
.firstMatch(matchStr)
?.group(1);
if (cvId != null) {
Get.toNamed('/htmlRender', parameters: {
'url': matchStr,
'title': title,
'id': cvId,
'dynamicType': 'read'
});
return;
}
final String redirectUrl =
(await UrlUtils.parseRedirectUrl(matchStr)) ??
matchStr;