mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: push article
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -852,6 +852,18 @@ class ReplyItem extends StatelessWidget {
|
|||||||
'dynamicType': 'read'
|
'dynamicType': 'read'
|
||||||
});
|
});
|
||||||
} else {
|
} 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 =
|
final String redirectUrl =
|
||||||
(await UrlUtils.parseRedirectUrl(matchStr)) ??
|
(await UrlUtils.parseRedirectUrl(matchStr)) ??
|
||||||
matchStr;
|
matchStr;
|
||||||
|
|||||||
@@ -891,6 +891,18 @@ class ReplyItemGrpc extends StatelessWidget {
|
|||||||
'dynamicType': 'read'
|
'dynamicType': 'read'
|
||||||
});
|
});
|
||||||
} else {
|
} 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 =
|
final String redirectUrl =
|
||||||
(await UrlUtils.parseRedirectUrl(matchStr)) ??
|
(await UrlUtils.parseRedirectUrl(matchStr)) ??
|
||||||
matchStr;
|
matchStr;
|
||||||
|
|||||||
Reference in New Issue
Block a user