Fix: private or deleted artworks

This commit is contained in:
VnPower
2023-10-28 14:16:47 +07:00
parent 99551120c8
commit 4fd3949d1c
2 changed files with 7 additions and 5 deletions
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0,0,256,256" width="48px" height="48px"><g fill-opacity="0" fill="#dddddd" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,256v-256h256v256z" id="bgRectangle"></path></g><g fill="#ffffff" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><g transform="scale(10.66667,10.66667)"><path d="M12,2.09961l-11,9.90039h3v9h7v-6h2v6h7v-9h3zM12,4.79102l6,5.40039v0.80859v8h-3v-6h-6v6h-3v-8.80859z"></path></g></g></svg>

After

Width:  |  Height:  |  Size: 949 B

+6 -5
View File
@@ -4,11 +4,12 @@
<div class="artwork-title">
<a>{{ .Title }}</a>
</div>
<div class="artwork-author"></div>
<a
><img src="{{ .ArtistAvatar }}" alt="{{ .ArtistName }}" loading="lazy" />
<span>{{ .ArtistName }}</span></a
>
<div class="artwork-author">
<a
><img src="{{ .Thumbnail }}" alt="{{ .ArtistName }}" loading="lazy" />
<span>{{ .ArtistName }}</span></a
>
</div>
</div>
{{ else if .ID }}
<div class="artwork-small artwork">