mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-09 19:47:57 +08:00
mod: article: show code
Closes #759 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -564,7 +564,7 @@ class _PostPanelState extends CommonCollapseSlidePageState<PostPanel> {
|
||||
}
|
||||
} else {
|
||||
if (const [301, 302, 303, 307, 308].contains(res.statusCode)) {
|
||||
String? redirectUrl = res.headers['location']?.first;
|
||||
String? redirectUrl = res.headers['location']?.firstOrNull;
|
||||
if (redirectUrl != null) {
|
||||
_onPost(url: redirectUrl);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user