forked from leftypol/leftypol
pages.php: adjust redirect on mod_ip
This commit is contained in:
parent
5c176b95e7
commit
a45106b65f
1 changed files with 3 additions and 2 deletions
|
@ -911,10 +911,11 @@ function mod_ip(Context $ctx, $ip, string $encoded_cursor = null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Temporary Redirect so to not to break the note and unban system.
|
||||||
if (empty($encoded_cursor)) {
|
if (empty($encoded_cursor)) {
|
||||||
\header("Location: ?/user_posts/ip/$ip", true, 308);
|
\header("Location: ?/user_posts/ip/$ip", true, 307);
|
||||||
} else {
|
} else {
|
||||||
\header("Location: ?/user_posts/ip/$ip/cursor/$encoded_cursor", true, 308);
|
\header("Location: ?/user_posts/ip/$ip/cursor/$encoded_cursor", true, 307);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue