aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'>