summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2023-10-16 19:45:11 -0400
committerlolcat <will@lolcat.ca>2023-10-16 19:45:11 -0400
commit453b4310e2deea984182f6d3c78c974ba8a9f8d6 (patch)
treed0b62822195575f9bc85f3686a96ab1ed4e5ae32 /api
parentf67fadfa885c048aac42d9a703be6277f2987d29 (diff)
fixed API bug
Diffstat (limited to 'api')
-rw-r--r--api/v1/images.php3
-rw-r--r--api/v1/music.php4
-rw-r--r--api/v1/news.php3
-rw-r--r--api/v1/videos.php3
-rw-r--r--api/v1/web.php3
5 files changed, 10 insertions, 6 deletions
diff --git a/api/v1/images.php b/api/v1/images.php
index 474e2dd..34510b4 100644
--- a/api/v1/images.php
+++ b/api/v1/images.php
@@ -11,7 +11,8 @@ $frontend = new frontend();
Captcha
*/
include "lib/captcha_gen.php";
-new captcha($frontend, false);
+$null = null;
+new captcha($null, $null, $null, "images", false);
[$scraper, $filters] = $frontend->getscraperfilters(
"images",
diff --git a/api/v1/music.php b/api/v1/music.php
index 7512ac0..3c30953 100644
--- a/api/v1/music.php
+++ b/api/v1/music.php
@@ -10,9 +10,9 @@ $frontend = new frontend();
/*
Captcha
*/
-$null = null;
include "lib/captcha_gen.php";
-new captcha($null, $null, $null, $null, false);
+$null = null;
+new captcha($null, $null, $null, "music", false);
[$scraper, $filters] = $frontend->getscraperfilters(
"music",
diff --git a/api/v1/news.php b/api/v1/news.php
index 97738fc..bd8678f 100644
--- a/api/v1/news.php
+++ b/api/v1/news.php
@@ -11,7 +11,8 @@ $frontend = new frontend();
Captcha
*/
include "lib/captcha_gen.php";
-new captcha($frontend, false);
+$null = null;
+new captcha($null, $null, $null, "news", false);
[$scraper, $filters] = $frontend->getscraperfilters(
"news",
diff --git a/api/v1/videos.php b/api/v1/videos.php
index 9277792..a42b29b 100644
--- a/api/v1/videos.php
+++ b/api/v1/videos.php
@@ -11,7 +11,8 @@ $frontend = new frontend();
Captcha
*/
include "lib/captcha_gen.php";
-new captcha($frontend, false);
+$null = null;
+new captcha($null, $null, $null, "videos", false);
[$scraper, $filters] = $frontend->getscraperfilters(
"videos",
diff --git a/api/v1/web.php b/api/v1/web.php
index c479149..61bf82a 100644
--- a/api/v1/web.php
+++ b/api/v1/web.php
@@ -11,7 +11,8 @@ $frontend = new frontend();
Captcha
*/
include "lib/captcha_gen.php";
-new captcha($frontend, false);
+$null = null;
+new captcha($null, $null, $null, "web", false);
[$scraper, $filters] = $frontend->getscraperfilters(
"web",