Lower complexity of character parsing function

This commit is contained in:
2018-11-01 11:06:44 +09:00
parent 3a33853c4a
commit 4f557067df
2 changed files with 59 additions and 77 deletions

View File

@ -36,12 +36,12 @@ func Profile(ctx *aero.Context, viewUser *arn.User) string {
"og:image": viewUser.AvatarLink("large"),
"og:url": "https://" + ctx.App.Config.Domain + viewUser.Link(),
"og:site_name": "notify.moe",
"og:description": viewUser.Introduction,
"og:description": utils.CutLongDescription(viewUser.Introduction),
"og:type": "profile",
"profile:username": viewUser.Nick,
},
Meta: map[string]string{
"description": viewUser.Introduction,
"description": utils.CutLongDescription(viewUser.Introduction),
"keywords": viewUser.Nick + ",profile",
},
}