modified internal/server/annotations_handler.go +5 -1
| @@ -112,7 +112,11 @@ func (s *Server) handleCreateAnnotation(w http.ResponseWriter, r *http.Request) |
| 112 | 112 | return |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | | - w.WriteHeader(http.StatusNoContent) |
| 115 | + a.AuthorHandle = user.Handle |
| 116 | + s.render(w, r, "annotation-card.html", map[string]any{ |
| 117 | + "annotation": a, |
| 118 | + "userDID": user.DID, |
| 119 | + }) |
| 116 | 120 | } |
| 117 | 121 | |
| 118 | 122 | func (s *Server) handleDeleteAnnotation(w http.ResponseWriter, r *http.Request) { |
| @@ -112,7 +112,11 @@ func (s *Server) handleCreateAnnotation(w http.ResponseWriter, r *http.Request) |
| 112 | return | 112 | return |
| 113 | } | 113 | } |
| 114 | | 114 | |
| 115 | - w.WriteHeader(http.StatusNoContent) | 115 | + a.AuthorHandle = user.Handle |
| | 116 | + s.render(w, r, "annotation-card.html", map[string]any{ |
| | 117 | + "annotation": a, |
| | 118 | + "userDID": user.DID, |
| | 119 | + }) |
| 116 | } | 120 | } |
| 117 | | 121 | |
| 118 | func (s *Server) handleDeleteAnnotation(w http.ResponseWriter, r *http.Request) { | 122 | func (s *Server) handleDeleteAnnotation(w http.ResponseWriter, r *http.Request) { |