nandi/gleanpublic⑂ Fork 0
⑂ 3c2f40f
Commits
⬇ Clone ▾
git clone https://git.rickub.com/nandi/glean.git
git clone ssh://git@rickub.com/nandi/glean.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Fix article detail, show annotation directly after submissionUnverified

Julien Robert committed 2026-04-21T21:42:21+02:00 Browse files
3c2f40f parent: 8f27e39
modified internal/server/annotations_handler.go +5 -1
@@ -112,7 +112,11 @@ func (s *Server) handleCreateAnnotation(w http.ResponseWriter, r *http.Request)
112112 return
113113 }
114114
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+ })
116120 }
117121
118122 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 return112 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) {