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

@ -29,7 +29,7 @@ func Edit(ctx *aero.Context) string {
}
if quote.Character() != nil {
ctx.Data.(*arn.OpenGraph).Tags["og:image"] = quote.Character().Image
ctx.Data.(*arn.OpenGraph).Tags["og:image"] = quote.Character().ImageLink("large")
}
return ctx.HTML(components.QuoteTabs(quote, user) + editform.Render(quote, "Edit quote", user))