remove sorting because performance

This commit is contained in:
Absturztaube 2021-07-03 17:29:35 +02:00
parent b5cc8ec3ae
commit 6594cdaa63
2 changed files with 1 additions and 12 deletions

View file

@ -90,17 +90,6 @@ const StatusContent = {
} }
return true return true
}, },
tagsSorted () {
return this.status.tags.sort((a, b) => {
if (a.name < b.name) {
return -1
}
if (a.name > b.name) {
return 1
}
return 0
})
},
attachmentSize () { attachmentSize () {
if ((this.mergedConfig.hideAttachments && !this.inConversation) || if ((this.mergedConfig.hideAttachments && !this.inConversation) ||
(this.mergedConfig.hideAttachmentsInConv && this.inConversation) || (this.mergedConfig.hideAttachmentsInConv && this.inConversation) ||

View file

@ -89,7 +89,7 @@
<div v-if="status.tags.length !== 0"> <div v-if="status.tags.length !== 0">
<a <a
v-for="tag in tagsSorted" v-for="tag in status.tags"
:key="tag.name" :key="tag.name"
:href="tag.url" :href="tag.url"
class="btn button-default status-tag" class="btn button-default status-tag"