mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-06-22 02:44:17 +00:00
Support send akkoma custom reactions
This commit is contained in:
parent
ca99d0a789
commit
e6019323f6
2 changed files with 10 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue