diff --git a/service/transport.go b/service/transport.go index 2f204ab..9c6d9c1 100644 --- a/service/transport.go +++ b/service/transport.go @@ -333,6 +333,10 @@ func NewHandler(s *service, logger *log.Logger, staticDir string) http.Handler { putreact := handle(func(c *client) error { q := c.r.URL.Query() emoji := q.Get("emoji") + if len(emoji) <= 0 { + emoji = c.r.FormValue("akkoma-reaction") + } + id, _ := mux.Vars(c.r)["id"] _, err := s.PutReact(c, id, emoji) if err != nil { diff --git a/templates/reactionspage.tmpl b/templates/reactionspage.tmpl index 9ee21a4..55dbf96 100644 --- a/templates/reactionspage.tmpl +++ b/templates/reactionspage.tmpl @@ -15,6 +15,12 @@ {{end}} {{end}} +