Update follow.go
Cette révision appartient à :
Parent
12c5e2e76a
révision
f0be33c7c1
|
@ -28,5 +28,8 @@ func UserFollowHandler(c *gin.Context) {
|
||||||
if c.Query("id") != "" {
|
if c.Query("id") != "" {
|
||||||
url = "/view/" + c.Query("id") + "?" + followAction
|
url = "/view/" + c.Query("id") + "?" + followAction
|
||||||
}
|
}
|
||||||
|
if currentUser.ID == 0 {
|
||||||
|
url = "/login"
|
||||||
|
}
|
||||||
c.Redirect(http.StatusSeeOther, url)
|
c.Redirect(http.StatusSeeOther, url)
|
||||||
}
|
}
|
||||||
|
|
Référencer dans un nouveau ticket