Test meme filtering

This commit is contained in:
2024-05-01 17:33:45 +02:00
parent 91f8c3331e
commit f0a2c067be
2 changed files with 9 additions and 1 deletions

View File

@@ -121,6 +121,14 @@ function renderMeme(int $id, int $authorId, string $title, string $textContent,
* @param string|null $keyword Optional keyword for full-text search in meme titles and content.
* @return string Returns the complete HTML content of the meme gallery, optionally filtered.
*/
function getMemeGallery(?int $offset = null, ?int $authorId = null, ?int $memeId = null, ?string $keyword = null): array {
return [
"Status" => "Success",
"Output" => renderMemeGallery($offset, $authorId, $memeId, $keyword)
];
}
function renderMemeGallery(?int $offset = null, ?int $authorId = null, ?int $memeId = null, ?string $keyword = null): string {
global $mysqli, $routerConfig;