Pfusch lol

This commit is contained in:
Flummi 2018-09-02 17:59:34 +02:00
parent 6eed83a033
commit 5fe6240d7e

View File

@ -49,7 +49,8 @@ export default bot => {
user: list.user, user: list.user,
comments: item.comments.length, comments: item.comments.length,
toptags: item.tags toptags: item.tags
.sort((a, b) => a.confidence < b.confidence) .sort((a, b) => a.confidence - b.confidence)
.reverse()
.splice(0, 3) .splice(0, 3)
.map(tag => tag.tag), .map(tag => tag.tag),
link: site + id.toString() link: site + id.toString()