aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-10-09 09:03:06 -0400
committerSquibid <me@zacharyscheiman.com>2023-10-09 09:03:06 -0400
commit90c0f3e92db08ac780cbc48ac5eca570ee9350ce (patch)
tree81cd7bbf714be4ea0a070cbe6aacef62358e46f0
parent5c80111da6c30bf8daca6bd7e880b29d7b33f8ba (diff)
downloadwallheaven-90c0f3e92db08ac780cbc48ac5eca570ee9350ce.tar.gz
wallheaven-90c0f3e92db08ac780cbc48ac5eca570ee9350ce.tar.bz2
wallheaven-90c0f3e92db08ac780cbc48ac5eca570ee9350ce.zip
remove old apikey checker
-rw-r--r--view.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/view.php b/view.php
index 5b8c5aa..e2e5d69 100644
--- a/view.php
+++ b/view.php
@@ -22,10 +22,6 @@
printf("<meta property='twitter:card' content='summary_large_image'>");
/* get wallpaper id and get info from api */
preg_match("/(?!.*-)([A-Za-z0-9]+)/", $_POST['wall'], $matches);
- if ($_POST['purity'] === "nsfw")
- $apikey = $config["frontends"]["wallhaven"]["apikey"];
- else
- $apikey = "";
$res = getwallpaper("https://wallhaven.cc/api/v1/w/$matches[0]?apikey=$apikey");
?>
<div id='wallmaster'>