Use new character structure

This commit is contained in:
2018-03-27 05:25:25 +02:00
parent a1cfe624ae
commit fd6ab8eb02
9 changed files with 39 additions and 130 deletions

View File

@ -32,8 +32,8 @@ func Get(ctx *aero.Context) string {
character, _ := arn.GetCharacter(quote.CharacterID)
if character != nil {
openGraph.Tags["og:title"] = character.Name + "'s quote"
openGraph.Tags["og:image"] = "https:" + character.Image
openGraph.Tags["og:title"] = character.Name.Canonical + "'s quote"
openGraph.Tags["og:image"] = "https:" + character.ImageLink("large")
}
ctx.Data = openGraph