mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
custom avatar upload
This commit is contained in:
@@ -100,6 +100,13 @@ func Dashboard(ctx *middleware.Context) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
// FIXME: cache results?
|
||||
u, err := models.GetUserByName(act.ActUserName)
|
||||
if err != nil {
|
||||
ctx.Handle(500, "GetUserByName", err)
|
||||
return
|
||||
}
|
||||
act.ActAvatar = u.AvatarLink()
|
||||
feeds = append(feeds, act)
|
||||
}
|
||||
ctx.Data["Feeds"] = feeds
|
||||
|
Reference in New Issue
Block a user