pages.php: adjust redirect on mod_ip

This commit is contained in:
Zankaria 2024-12-27 19:59:02 +01:00
parent 5c176b95e7
commit a45106b65f

View file

@ -911,10 +911,11 @@ function mod_ip(Context $ctx, $ip, string $encoded_cursor = null) {
return;
}
// Temporary Redirect so to not to break the note and unban system.
if (empty($encoded_cursor)) {
\header("Location: ?/user_posts/ip/$ip", true, 308);
\header("Location: ?/user_posts/ip/$ip", true, 307);
} else {
\header("Location: ?/user_posts/ip/$ip/cursor/$encoded_cursor", true, 308);
\header("Location: ?/user_posts/ip/$ip/cursor/$encoded_cursor", true, 307);
}
}