Accept pasted images in inbox Other and Reply answers
This commit is contained in:
@@ -41,6 +41,12 @@ func (s *Server) RespondInbox(w http.ResponseWriter, r *http.Request) {
|
||||
if !readJSON(w, r, &req) {
|
||||
return
|
||||
}
|
||||
for _, c := range req.Responses {
|
||||
_, ok := s.images(w, r, c.Images)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
items, err := s.agents.Respond(r.Context(), actor(r), req.Responses)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user