aboutsummaryrefslogtreecommitdiffstats
path: root/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'view.php')
-rw-r--r--view.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/view.php b/view.php
index 697a7a9..5b8c5aa 100644
--- a/view.php
+++ b/view.php
@@ -17,6 +17,9 @@
$wall = getwallpaper("https://wallhaven.cc/api/v1/w/$_GET[w]?apikey=$apikey");
$_POST['wall'] = $wall["path"];
}
+ /* set meta tag */
+ printf("<meta property='twitter:image:src' content='/proxy.php?i=%s'>", $_POST['wall']);
+ 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")