@@ -17,8 +17,6 @@ import (
1717 "code.gitea.io/gitea/modules/git"
1818 "code.gitea.io/gitea/modules/gitrepo"
1919 "code.gitea.io/gitea/modules/log"
20- "code.gitea.io/gitea/modules/markup"
21- "code.gitea.io/gitea/modules/markup/markdown"
2220 "code.gitea.io/gitea/modules/setting"
2321 "code.gitea.io/gitea/modules/util"
2422)
@@ -36,7 +34,6 @@ func prepareContextForCommonProfile(ctx *context.Context) {
3634func PrepareContextForProfileBigAvatar (ctx * context.Context ) {
3735 prepareContextForCommonProfile (ctx )
3836
39- ctx .Data ["IsFollowing" ] = ctx .Doer != nil && user_model .IsFollowing (ctx , ctx .Doer .ID , ctx .ContextUser .ID )
4037 ctx .Data ["ShowUserEmail" ] = setting .UI .ShowUserEmail && ctx .ContextUser .Email != "" && ctx .IsSigned && ! ctx .ContextUser .KeepEmailPrivate
4138 ctx .Data ["ContextUserLocationMapURL" ] = setting .Service .UserLocationMapURL + url .QueryEscape (ctx .ContextUser .Location )
4239
@@ -48,18 +45,6 @@ func PrepareContextForProfileBigAvatar(ctx *context.Context) {
4845 }
4946 ctx .Data ["OpenIDs" ] = openIDs
5047
51- if len (ctx .ContextUser .Description ) != 0 {
52- content , err := markdown .RenderString (& markup.RenderContext {
53- Metas : map [string ]string {"mode" : "document" },
54- Ctx : ctx ,
55- }, ctx .ContextUser .Description )
56- if err != nil {
57- ctx .ServerError ("RenderString" , err )
58- return
59- }
60- ctx .Data ["RenderedDescription" ] = content
61- }
62-
6348 showPrivate := ctx .IsSigned && (ctx .Doer .IsAdmin || ctx .Doer .ID == ctx .ContextUser .ID )
6449 orgs , err := db .Find [organization.Organization ](ctx , organization.FindOrgOptions {
6550 UserID : ctx .ContextUser .ID ,
0 commit comments