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:
@@ -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>
|
||||
|
||||
@@ -119,6 +119,8 @@ function initActorActions(store, router) {
|
||||
hash
|
||||
comment
|
||||
credit
|
||||
entropy
|
||||
sharpness
|
||||
sfw: sfwMedia {
|
||||
id
|
||||
thumbnail
|
||||
|
||||
Reference in New Issue
Block a user