Fix lint error
This commit is contained in:
parent
71230e3886
commit
5d727487ba
@ -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)
|
||||
|
@ -1,11 +1,11 @@
|
||||
package scraper
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"html"
|
||||
"net/url"
|
||||
"strings"
|
||||
"html"
|
||||
"encoding/json"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user