UserSearchQueries.php: fix query generation

This commit is contained in:
Zankaria 2025-07-23 23:19:57 +02:00
parent f6b74cb282
commit f491fa0cf8

View file

@ -220,7 +220,7 @@ class UserPostQueries {
for ($i = 0; $i < \count($flags); $i++) { for ($i = 0; $i < \count($flags); $i++) {
// Yes, vichan stores the flag inside the generated HTML. Now you know why it's slow as shit. // Yes, vichan stores the flag inside the generated HTML. Now you know why it's slow as shit.
// English lacks the words to express my feelings about it in a satisfying manner. // English lacks the words to express my feelings about it in a satisfying manner.
$flag_acc[] = "CONCAT('%<tinyboard>', :flag$i, '</tinyboard>%')"; $flag_acc[] = "CONCAT('%<tinyboard flag alt>', :flag$i, '</tinyboard>%')";
} }
$where_acc[] = 'body_nomarkup LIKE (' . \implode(' OR ', $flag_acc) . ')'; $where_acc[] = 'body_nomarkup LIKE (' . \implode(' OR ', $flag_acc) . ')';
} }