mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-23 15:33:03 +00:00
Fix merge
This commit is contained in:
parent
4ab53547a8
commit
ecb19c8746
@ -322,12 +322,11 @@ func (s *service) ThreadPage(c *client, id string, reply bool) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (svc *service) StatusPopup(c *client, id string) (err error) {
|
func (svc *service) StatusPopup(c *client, id string) (err error) {
|
||||||
status, err := c.GetStatus(ctx, id)
|
status, err := c.GetStatus(c.ctx, id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
rCtx := getRendererContext(c)
|
return svc.renderer.Render(c.rctx, c.w, renderer.StatusPopup, status)
|
||||||
return svc.renderer.Render(rCtx, c, renderer.StatusPopup, status)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *service) LikedByPage(c *client, id string) (err error) {
|
func (s *service) LikedByPage(c *client, id string) (err error) {
|
||||||
|
@ -630,7 +630,7 @@ func NewHandler(s *service, logger *log.Logger, staticDir string) http.Handler {
|
|||||||
}, CSRF, JSON)
|
}, CSRF, JSON)
|
||||||
|
|
||||||
fStatus := handle(func(c *client) error {
|
fStatus := handle(func(c *client) error {
|
||||||
id, _ := mux.Vars(c.Req)["id"]
|
id, _ := mux.Vars(c.r)["id"]
|
||||||
return s.StatusPopup(c, id)
|
return s.StatusPopup(c, id)
|
||||||
}, SESSION, JSON)
|
}, SESSION, JSON)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user