Updated sync

This commit is contained in:
2018-11-01 09:43:12 +09:00
parent dec90b056e
commit 3a33853c4a
3 changed files with 36 additions and 12 deletions

View File

@ -12,7 +12,6 @@ import (
)
const (
maxDescriptionLength = 170
maxRelevantCharacters = 12
)
@ -93,11 +92,7 @@ func Get(ctx *aero.Context) string {
arn.SortQuotesPopularFirst(quotes)
// Set OpenGraph attributes
description := character.Description
if len(description) > maxDescriptionLength {
description = description[:maxDescriptionLength-3] + "..."
}
description := utils.CutLongDescription(character.Description)
ctx.Data = &arn.OpenGraph{
Tags: map[string]string{