Added sharpness and re-added entropy to avatars, ignoring low-entropy photos as main avatar and in profile photo list.

This commit is contained in:
DebaucheryLibrarian
2020-12-20 04:21:28 +01:00
parent cbcac0725d
commit 5f4039c5d4
7 changed files with 128 additions and 87 deletions

View File

@@ -25,7 +25,7 @@
</a>
<a
v-for="photo in actor.photos"
v-for="photo in photos"
:key="`photo-${photo.id}`"
:href="`/media/${photo.path}`"
target="_blank"
@@ -45,6 +45,10 @@
</template>
<script>
function photos() {
return this.actor.photos.filter(photo => photo.entropy > 6);
}
function sfw() {
return this.$store.state.ui.sfw;
}
@@ -58,6 +62,7 @@ export default {
},
computed: {
sfw,
photos,
},
};
</script>