diff --git a/internal/webserver/handler_messages.go b/internal/webserver/handler_messages.go index 5aa0995..0da0c8b 100644 --- a/internal/webserver/handler_messages.go +++ b/internal/webserver/handler_messages.go @@ -38,8 +38,8 @@ func (app *Application) message_detail(w http.ResponseWriter, r *http.Request) { body, err := io.ReadAll(r.Body) panic_if(err) var message_data struct { - Text string `json:"text"` - LatestPollingTimestamp int `json:"latest_polling_timestamp,string"` + Text string `json:"text"` + LatestPollingTimestamp int `json:"latest_polling_timestamp,string"` } panic_if(json.Unmarshal(body, &message_data)) trove := scraper.SendDMMessage(room_id, message_data.Text, 0) diff --git a/pkg/scraper/api_types_dms.go b/pkg/scraper/api_types_dms.go index 02745f4..9988048 100644 --- a/pkg/scraper/api_types_dms.go +++ b/pkg/scraper/api_types_dms.go @@ -1,11 +1,11 @@ package scraper import ( + "encoding/json" "fmt" + "html" "net/url" "strings" - "html" - "encoding/json" "github.com/google/uuid" )