aboutsummaryrefslogtreecommitdiff
path: root/followed/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'followed/index.php')
-rw-r--r--followed/index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/followed/index.php b/followed/index.php
index e7ee625..007f4bd 100644
--- a/followed/index.php
+++ b/followed/index.php
@@ -5,11 +5,11 @@ $tags = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/dat
?>
-<div style="margin: 20px 50px 0;">
+<div style="margin: 20px 50px 0;" class="main-app">
<div class="list-group">
<?php foreach ($follows as $tag): ?>
<a href="/tag/?id=<?= $tag ?>" class="list-group-item list-group-item-action tag-item" style="display: grid; grid-template-columns: 5vw 1fr; grid-gap: 15px;" data-tag="<?= $tag ?>">
- <div style="background-color: rgba(0, 0, 0, .1); height: 64px; border-radius: 5px;">
+ <div style="background-color: rgba(255, 255, 255, .1); height: 64px; border-radius: 5px;">
<div style="opacity: 0; transition: opacity 200ms; background-size: cover; background-position: center; height: 100%; width: 100%; border-radius: 5px;">
<div style="display:none;width: 100%;backdrop-filter: blur(5px);height: 100%;border-radius: 5px;"></div>
</div>
@@ -62,7 +62,7 @@ $tags = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/dat
imgData = JSON.parse(await (await window.fetch("https://derpibooru.org/api/v1/json/images/" + imgId)).text());
} else {
imgData = {
- image: JSON.parse(await (await window.fetch("https://derpibooru.org/api/v1/json/search/images/?q=" + encodeURIComponent(id).replaceAll("%20", "+") + "&sf=wilson_score&sd=desc")).text())['images'][0]
+ image: JSON.parse(await (await window.fetch("https://derpibooru.org/api/v1/json/search/images/?q=" + encodeURIComponent(id).replaceAll("%20", "+") + "&sf=wilson_score&sd=desc")).text())['images'].filter(i => !i['animated'])[0]
};
}