mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Show owner/poster tags of comments and fix #1312
This commit is contained in:
		| @@ -197,6 +197,14 @@ func Contexter() macaron.Handler { | ||||
|  | ||||
| 		ctx.Data["PageStartTime"] = time.Now() | ||||
|  | ||||
| 		// Check auto-signin. | ||||
| 		if sess.Get("uid") == nil { | ||||
| 			if _, err := AutoSignIn(ctx); err != nil { | ||||
| 				ctx.Handle(500, "AutoSignIn", err) | ||||
| 				return | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		// Get user from session if logined. | ||||
| 		ctx.User, ctx.IsBasicAuth = auth.SignedInUser(ctx.Req.Request, ctx.Session) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user